ws-fallback: remove all WSPeers when server connection disconnects + fix onPeerLeft

This commit is contained in:
schlagmichdoch 2023-03-03 13:09:59 +01:00
parent cf715b2872
commit 39ca5b2d21
2 changed files with 16 additions and 3 deletions

View file

@ -491,6 +491,7 @@ class RTCPeer extends Peer {
constructor(serverConnection, peerId, roomType, roomSecret) {
super(serverConnection, peerId, roomType, roomSecret);
this.rtcSupported = true;
if (!peerId) return; // we will listen for a caller
this._connect(peerId, true);
}