MCPcopy Create free account
hub / github.com/socketio/socket.io / cleanupAndClose

Function cleanupAndClose

client-dist/socket.io.js:2331–2335  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2329 _this6.transport.close();
2330 };
2331 var cleanupAndClose = function cleanupAndClose() {
2332 _this6.off("upgrade", cleanupAndClose);
2333 _this6.off("upgradeError", cleanupAndClose);
2334 close();
2335 };
2336 var waitForUpgrade = function waitForUpgrade() {
2337 // wait for upgrade to finish since we can't send packets while pausing a transport
2338 _this6.once("upgrade", cleanupAndClose);

Callers

nothing calls this directly

Calls 1

closeFunction · 0.70

Tested by

no test coverage detected