fix to wrong peerId in event
This commit is contained in:
@@ -269,7 +269,7 @@ export class PeerManager {
|
||||
let peerConnection = new PeerConnection(this, remotePeerID, this.websocketSendPeerMessage.bind(this));
|
||||
this.peers.set(remotePeerID, peerConnection);
|
||||
await peerConnection.connect();
|
||||
this.onPeerConnected(this.peerID);
|
||||
this.onPeerConnected(remotePeerID);
|
||||
return peerConnection;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user