Skip to content

Commit 5089752

Browse files
committed
update example
1 parent a8032cf commit 5089752

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/ice/restart/offer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ console.log("start");
4343
await pc.setRemoteDescription(msg);
4444
} else if (msg.type === "restart") {
4545
console.log("restarted by server");
46-
const offer = await pc.createOffer({ iceRestart: true });
46+
pc.restartIce();
47+
const offer = await pc.createOffer();
4748
await pc.setLocalDescription(offer);
4849
const sdp = JSON.stringify(pc.localDescription);
4950
socket.send(sdp);

0 commit comments

Comments
 (0)