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

Method _disconnect

packages/socket.io/lib/client.ts:175–181  ·  view source on GitHub ↗

* Disconnects from all namespaces and closes transport. * * @private

()

Source from the content-addressed store, hash-verified

173 * @private
174 */
175 _disconnect(): void {
176 for (const socket of this.sockets.values()) {
177 socket.disconnect();
178 }
179 this.sockets.clear();
180 this.close();
181 }
182
183 /**
184 * Removes a socket. Called by each `Socket`.

Callers 1

disconnectMethod · 0.80

Calls 2

closeMethod · 0.95
disconnectMethod · 0.45

Tested by

no test coverage detected