@ -151,6 +151,12 @@
return;
}
if (msg.sid == null || msg.sid != socket.id) {
console.log("ignoring message for unknown sid");
console.log(socket.id);
if (!webrtcPeerConnection) {
webrtcPeerConnection = new RTCPeerConnection(webrtcConfiguration);
webrtcPeerConnection.ontrack = onAddRemoteStream;