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

Function freezeTransport

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

Source from the content-addressed store, hash-verified

4148 }
4149
4150 function freezeTransport () {
4151 if (failed) return;
4152
4153 // Any callback called by transport should be ignored since now
4154 failed = true;
4155
4156 cleanup();
4157
4158 transport.close();
4159 transport = null;
4160 }
4161
4162 // Handle any error that happens while probing
4163 function onerror (err) {

Callers 2

onerrorFunction · 0.85
onupgradeFunction · 0.85

Calls 2

cleanupFunction · 0.85
closeMethod · 0.80

Tested by

no test coverage detected