Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/socketio/socket.io
/ ondisconnect
Method
ondisconnect
packages/socket.io/lib/socket.ts:623–626 ·
view source on GitHub ↗
* Called upon client disconnect packet. * * @private
()
Source
from the content-addressed store, hash-verified
621
* @private
622
*/
623
private ondisconnect(): void {
624
debug(
"got disconnect packet"
);
625
this._onclose(
"client namespace disconnect"
);
626
}
627
628
/**
629
* Handles a client error.
Callers
1
_onpacket
Method · 0.95
Calls
2
_onclose
Method · 0.95
debug
Function · 0.85
Tested by
no test coverage detected