Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/socketio/socket.io
/ onClose
Method
onClose
packages/engine.io/lib/socket.ts:371–373 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
369
};
370
371
const
onClose = () => {
372
onError(
"socket closed"
);
373
};
374
375
transport.on(
"packet"
, onPacket);
376
transport.once(
"close"
, onTransportClose);
Callers
8
onPacket
Method · 0.95
onError
Method · 0.95
resetPingTimeout
Method · 0.95
close
Function · 0.45
doOpen
Method · 0.45
addEventListeners
Function · 0.45
callback
Function · 0.45
attach
Method · 0.45
Calls
3
clearTransport
Method · 0.95
emit
Method · 0.95
onError
Function · 0.70
Tested by
no test coverage detected