diff --git a/raspberry/roberto/views/frontend/templates/index.html b/raspberry/roberto/views/frontend/templates/index.html index 73cc37c..ee1a97f 100644 --- a/raspberry/roberto/views/frontend/templates/index.html +++ b/raspberry/roberto/views/frontend/templates/index.html @@ -151,6 +151,12 @@ return; } + if (msg.sid == null || msg.sid != socket.id) { + console.log("ignoring message for unknown sid"); + console.log(socket.id); + return; + } + if (!webrtcPeerConnection) { webrtcPeerConnection = new RTCPeerConnection(webrtcConfiguration); webrtcPeerConnection.ontrack = onAddRemoteStream;