MCPcopy
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

onPacketMethod · 0.95
onErrorMethod · 0.95
resetPingTimeoutMethod · 0.95
closeFunction · 0.45
doOpenMethod · 0.45
addEventListenersFunction · 0.45
callbackFunction · 0.45
attachMethod · 0.45

Calls 3

clearTransportMethod · 0.95
emitMethod · 0.95
onErrorFunction · 0.70

Tested by

no test coverage detected