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

Function waitForUpgrade

packages/socket.io/client-dist/socket.io.js:2076–2080  ·  packages/socket.io/client-dist/socket.io.js::waitForUpgrade
()

Source from the content-addressed store, hash-verified

2074 close();
2075 };
2076 var waitForUpgrade = function waitForUpgrade() {
2077 class="cm">// wait for upgrade to finish since we can't send packets while pausing a transport
2078 _this6.once(class="st">"upgrade", cleanupAndClose);
2079 _this6.once(class="st">"upgradeError", cleanupAndClose);
2080 };
2081 if (class="st">"opening" === this.readyState || class="st">"open" === this.readyState) {
2082 this.readyState = class="st">"closing";
2083 if (this.writeBuffer.length) {

Callers 2

closeMethod · 0.85
socket.io.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected