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

Function onclose

packages/socket.io/client-dist/socket.io.js:2259–2261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2257 }
2258 // When the socket is closed while we're probing
2259 function onclose() {
2260 onerror("socket closed");
2261 }
2262 // When the socket is upgraded while we're probing
2263 function onupgrade(to) {
2264 if (transport && to.name !== transport.name) {

Callers

nothing calls this directly

Calls 1

onerrorFunction · 0.85

Tested by

no test coverage detected