Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/SnapDrop/snapdrop
/ _onPeerLeft
Method
_onPeerLeft
client/scripts/network.js:407–412 ·
view source on GitHub ↗
(peerId)
Source
from the content-addressed store, hash-verified
405
}
406
407
_onPeerLeft(peerId) {
408
const
peer = this.peers[peerId];
409
delete this.peers[peerId];
410
if
(!peer || !peer._peer)
return
;
411
peer._peer.close();
412
}
413
414
}
415
Callers
1
constructor
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected