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

Method check

packages/engine.io/lib/socket.ts:341–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339
340 // we force a polling cycle to ensure a fast upgrade
341 const check = () => {
342 if ("polling" === this.transport.name && this.transport.writable) {
343 debug("writing a noop packet to polling for fast upgrade");
344 this.transport.send([{ type: "noop" }]);
345 }
346 };
347
348 const cleanup = () => {
349 this.upgrading = false;

Callers

nothing calls this directly

Calls 2

debugFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected