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

Function close

packages/engine.io/lib/server.ts:403–412  ·  view source on GitHub ↗

* Closes all clients.

()

Source from the content-addressed store, hash-verified

401 * Closes all clients.
402 */
403 public close() {
404 debug("closing all open clients");
405 for (const sid in this.clients) {
406 if (hasOwn(this.clients, sid)) {
407 this.clients[sid].close(true);
408 }
409 }
410 this.cleanup();
411 return this;
412 }
413
414 protected abstract cleanup();
415

Callers 1

server.jsFile · 0.50

Calls 4

debugFunction · 0.85
hasOwnFunction · 0.85
closeMethod · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected