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

Method onClose

packages/engine.io/lib/transports/polling.ts:86–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 this.res = res;
85
86 const onClose = () => {
87 this.onError("poll connection closed prematurely");
88 };
89
90 const cleanup = () => {
91 req.removeListener("close", onClose);

Callers 2

callbackMethod · 0.95
constructorMethod · 0.45

Calls 4

sendMethod · 0.95
cleanupFunction · 0.85
fnFunction · 0.85
onErrorMethod · 0.45

Tested by

no test coverage detected