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

Method onupgrade

packages/engine.io-client/lib/socket.ts:1088–1093  ·  view source on GitHub ↗
(to)

Source from the content-addressed store, hash-verified

1086
1087 // When the socket is upgraded while we're probing
1088 function onupgrade(to) {
1089 if (transport && to.name !== transport.name) {
1090 debug('"%s" works - aborting "%s"', to.name, transport.name);
1091 freezeTransport();
1092 }
1093 }
1094
1095 // Remove all listeners on the transport and on self
1096 const cleanup = () => {

Callers

nothing calls this directly

Calls 2

debugFunction · 0.85
freezeTransportFunction · 0.85

Tested by

no test coverage detected