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

Method close

packages/socket.io/lib/client.ts:205–211  ·  view source on GitHub ↗

* Closes the underlying connection. * * @private

()

Source from the content-addressed store, hash-verified

203 * @private
204 */
205 private close(): void {
206 if ("open" === this.conn.readyState) {
207 debug("forcing transport close");
208 this.conn.close();
209 this.onclose("forced server close");
210 }
211 }
212
213 /**
214 * Writes a packet to the transport.

Callers 4

setupMethod · 0.95
_disconnectMethod · 0.95
ondecodedMethod · 0.95
onerrorMethod · 0.45

Calls 2

oncloseMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected