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

Function doClose

packages/engine.io-client/lib/transports/websocket.ts:124–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 abstract doWrite(packet: Packet, data: RawData);
123
124 override doClose() {
125 if (typeof this.ws !== "undefined") {
126 this.ws.onerror = () => {};
127 this.ws.close();
128 this.ws = null;
129 }
130 }
131
132 /**
133 * Generates uri for connection.

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected