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

Method doClose

packages/engine.io/lib/transports/websocket.ts:108–112  ·  packages/engine.io/lib/transports/websocket.ts::WebSocket.doClose
(fn?: () => void)

Source from the content-addressed store, hash-verified

106 };
107
108 doClose(fn?: () => void) {
109 debug(class="st">"closing");
110 this.socket.close();
111 fn && fn();
112 }
113}

Callers

nothing calls this directly

Calls 3

debugFunction · 0.85
fnFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected