MCPcopy Create free account
hub / github.com/socketio/socket.io / onclose

Function onclose

client-dist/socket.io.js:2074–2076  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2072 }
2073 // When the socket is closed while we're probing
2074 function onclose() {
2075 onerror("socket closed");
2076 }
2077 // When the socket is upgraded while we're probing
2078 function onupgrade(to) {
2079 if (transport && to.name !== transport.name) {

Callers

nothing calls this directly

Calls 1

onerrorFunction · 0.85

Tested by

no test coverage detected