MCPcopy
hub / github.com/socketio/socket.io / ondisconnect

Method ondisconnect

packages/socket.io-client/lib/socket.ts:861–865  ·  packages/socket.io-client/lib/socket.ts::Socket.ondisconnect

* Called upon server disconnect. * * @private

()

Source from the content-addressed store, hash-verified

859 * @private
860 */
861 private ondisconnect(): void {
862 debug(class="st">"server disconnect (%s)", this.nsp);
863 this.destroy();
864 this.onclose(class="st">"io server disconnect");
865 }
866
867 /**
868 * Called upon forced client/server side disconnections,

Callers 1

onpacketMethod · 0.95

Calls 3

destroyMethod · 0.95
oncloseMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected