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

Function cleanupAndClose

sdk/src/CloudSocketClientLib.js:759–763  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

757 }
758
759 function cleanupAndClose() {
760 self.removeListener('upgrade', cleanupAndClose);
761 self.removeListener('upgradeError', cleanupAndClose);
762 close();
763 }
764
765 function waitForUpgrade() {
766 // wait for upgrade to finish since we can't send packets while pausing a transport

Callers

nothing calls this directly

Calls 1

closeFunction · 0.70

Tested by

no test coverage detected