MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / onupgrade

Function onupgrade

sdk/src/CloudSocketClientLib.js:471–476  ·  view source on GitHub ↗
(to)

Source from the content-addressed store, hash-verified

469
470 //When the socket is upgraded while we're probing
471 function onupgrade(to) {
472 if (transport && to.name != transport.name) {
473 debug('"%s" works - aborting "%s"', to.name, transport.name);
474 freezeTransport();
475 }
476 }
477
478 //Remove all listeners on the transport and on self
479 function cleanup() {

Callers

nothing calls this directly

Calls 2

debugFunction · 0.70
freezeTransportFunction · 0.70

Tested by

no test coverage detected