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

Function cleanupAndClose

public/javascripts/socket.io.js:4471–4475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4469 }
4470
4471 function cleanupAndClose () {
4472 self.removeListener('upgrade', cleanupAndClose);
4473 self.removeListener('upgradeError', cleanupAndClose);
4474 close();
4475 }
4476
4477 function waitForUpgrade () {
4478 // 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