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

Function close

packages/engine.io/lib/transport.ts:121–126  ·  view source on GitHub ↗

* Closes the transport. * * @package

(fn?: () => void)

Source from the content-addressed store, hash-verified

119 * @package
120 */
121 close(fn?: () => void) {
122 if ("closed" === this.readyState || "closing" === this.readyState) return;
123
124 this.readyState = "closing";
125 this.doClose(fn || noop);
126 }
127
128 /**
129 * Called with a transport error.

Callers

nothing calls this directly

Calls 1

doCloseMethod · 0.45

Tested by

no test coverage detected