Add peer disconnect event dispatch

This commit is contained in:
2025-04-29 01:10:03 -07:00
parent 0005f06b2b
commit 45b707f39d
3 changed files with 8 additions and 5 deletions

View File

@@ -314,6 +314,8 @@ export class PeerManager {
this.bootstrapPeerConnection = null;
}
this.dispatchEvent(PeerEventTypes.PEER_DISCONNECTED, {peerID:remotePeerID});
}
async disconnectFromPeer(remotePeerID: string) {