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

Function close

packages/engine.io-client/lib/transport.ts:100–107  ·  view source on GitHub ↗

* Closes the transport.

()

Source from the content-addressed store, hash-verified

98 * Closes the transport.
99 */
100 public close() {
101 if (this.readyState === "opening" || this.readyState === "open") {
102 this.doClose();
103 this.onClose();
104 }
105
106 return this;
107 }
108
109 /**
110 * Sends multiple packets.

Callers 2

cleanupAndCloseMethod · 0.70
closeMethod · 0.70

Calls 2

doCloseMethod · 0.45
onCloseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…