Browse Source

dont accept websocket messages for other sids

main
Hendrik Langer 4 years ago
parent
commit
05c03e5906
  1. 6
      raspberry/roberto/views/frontend/templates/index.html

6
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;

Loading…
Cancel
Save