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

Method disconnectSockets

lib/index.ts:1080–1082  ·  view source on GitHub ↗

* Makes the matching socket instances disconnect. * * Note: this method also works within a cluster of multiple Socket.IO servers, with a compatible Adapter. * * @example * // make all socket instances disconnect (the connections might be kept alive for other namespaces) *

(close: boolean = false)

Source from the content-addressed store, hash-verified

1078 * @param close - whether to close the underlying connection
1079 */
1080 public disconnectSockets(close: boolean = false) {
1081 return this.sockets.disconnectSockets(close);
1082 }
1083}
1084
1085/**

Callers 7

utility-methods.tsFile · 0.45
index.jsFile · 0.45
index.tsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
index.tsFile · 0.45
index.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected