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

Function onupgrade

packages/socket.io/client-dist/socket.io.js:2263–2267  ·  view source on GitHub ↗
(to)

Source from the content-addressed store, hash-verified

2261 }
2262 // When the socket is upgraded while we're probing
2263 function onupgrade(to) {
2264 if (transport && to.name !== transport.name) {
2265 freezeTransport();
2266 }
2267 }
2268 // Remove all listeners on the transport and on self
2269 var cleanup = function cleanup() {
2270 transport.removeListener("open", onTransportOpen);

Callers

nothing calls this directly

Calls 1

freezeTransportFunction · 0.85

Tested by

no test coverage detected