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

Function onupgrade

client-dist/socket.io.js:2078–2082  ·  view source on GitHub ↗
(to)

Source from the content-addressed store, hash-verified

2076 }
2077 // When the socket is upgraded while we're probing
2078 function onupgrade(to) {
2079 if (transport && to.name !== transport.name) {
2080 freezeTransport();
2081 }
2082 }
2083 // Remove all listeners on the transport and on self
2084 var cleanup = function cleanup() {
2085 transport.removeListener("open", onTransportOpen);

Callers

nothing calls this directly

Calls 1

freezeTransportFunction · 0.85

Tested by

no test coverage detected