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

Method close

lib/client.ts:204–210  ·  view source on GitHub ↗

* Closes the underlying connection. * * @private

()

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls 1

oncloseMethod · 0.95

Tested by

no test coverage detected