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

Method disconnectSockets

packages/socket.io/lib/index.ts:1168–1170  ·  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 {@link 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

1166 * @param close - whether to close the underlying connection
1167 */
1168 public disconnectSockets(close: boolean = false) {
1169 return this.sockets.disconnectSockets(close);
1170 }
1171}
1172
1173/**

Callers 8

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