Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
debug
Function · 0.85
fn
Function · 0.85
end
Method · 0.45
Tested by
no test coverage detected