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

Method doClose

packages/engine.io/lib/transports-uws/websocket.ts:77–82  ·  view source on GitHub ↗

* Closes the transport. * * @private

(fn)

Source from the content-addressed store, hash-verified

75 * @private
76 */
77 doClose(fn) {
78 debug("closing");
79 fn && fn();
80 // call fn first since socket.end() immediately emits a "close" event
81 this.socket.end();
82 }
83}

Callers

nothing calls this directly

Calls 3

debugFunction · 0.85
fnFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected