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

Function freezeTransport

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

Source from the content-addressed store, hash-verified

2052 });
2053 };
2054 function freezeTransport() {
2055 if (failed) return;
2056 // Any callback called by transport should be ignored since now
2057 failed = true;
2058 cleanup();
2059 transport.close();
2060 transport = null;
2061 }
2062 // Handle any error that happens while probing
2063 var onerror = function onerror(err) {
2064 var error = new Error("probe error: " + err);

Callers 2

onerrorFunction · 0.85
onupgradeFunction · 0.85

Calls 2

cleanupFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected