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

Function close

packages/engine.io-client/lib/transport.ts:100–107  ·  packages/engine.io-client/lib/transport.ts::close

* Closes the transport.

()

Source from the content-addressed store, hash-verified

98 * Closes the transport.
99 */
100 public close() {
101 if (this.readyState === class="st">"opening" || this.readyState === class="st">"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