MCPcopy
hub / github.com/socketio/socket.io / cleanupAndClose

Function cleanupAndClose

packages/socket.io/client-dist/socket.io.js:2071–2075  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2069 _this6.transport.close();
2070 };
2071 var cleanupAndClose = function cleanupAndClose() {
2072 _this6.off("upgrade", cleanupAndClose);
2073 _this6.off("upgradeError", cleanupAndClose);
2074 close();
2075 };
2076 var waitForUpgrade = function waitForUpgrade() {
2077 // wait for upgrade to finish since we can't send packets while pausing a transport
2078 _this6.once("upgrade", cleanupAndClose);

Callers

nothing calls this directly

Calls 1

closeFunction · 0.70

Tested by

no test coverage detected