MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / onupgrade

Function onupgrade

public/javascripts/socket.io.js:4184–4189  ·  view source on GitHub ↗
(to)

Source from the content-addressed store, hash-verified

4182
4183 // When the socket is upgraded while we're probing
4184 function onupgrade (to) {
4185 if (transport && to.name !== transport.name) {
4186 debug('"%s" works - aborting "%s"', to.name, transport.name);
4187 freezeTransport();
4188 }
4189 }
4190
4191 // Remove all listeners on the transport and on self
4192 function cleanup () {

Callers

nothing calls this directly

Calls 2

debugFunction · 0.85
freezeTransportFunction · 0.85

Tested by

no test coverage detected