MCPcopy Index your code
hub / github.com/socketio/socket.io / _disconnect

Method _disconnect

lib/client.ts:174–180  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

172 * @private
173 */
174 _disconnect(): void {
175 for (const socket of this.sockets.values()) {
176 socket.disconnect();
177 }
178 this.sockets.clear();
179 this.close();
180 }
181
182 /**
183 * 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