Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/SnapDrop/snapdrop
/ _disconnect
Method
_disconnect
client/scripts/network.js:65–69 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
63
}
64
65
_disconnect() {
66
this.send({
type
:
'disconnect'
});
67
this._socket.onclose = null;
68
this._socket.close();
69
}
70
71
_onDisconnect() {
72
console.log(
'WS: server disconnected'
);
Callers
1
constructor
Method · 0.95
Calls
1
send
Method · 0.95
Tested by
no test coverage detected