Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/socketio/socket.io
/ onClose
Method
onClose
packages/engine.io/lib/transports/polling.ts:86–88 · packages/engine.io/lib/transports/polling.ts::Polling.onClose
()
Source
from the content-addressed store, hash-verified
84
this.res = res;
85
86
const
onClose = () => {
87
this.onError(
class
="st">"poll connection closed prematurely");
88
};
89
90
const
cleanup = () => {
91
req.removeListener(
class
="st">"close", onClose);
Callers
2
callback
Method · 0.95
constructor
Method · 0.45
Calls
4
send
Method · 0.95
cleanup
Function · 0.85
fn
Function · 0.85
onError
Method · 0.45
Tested by
no test coverage detected