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

Function doPoll

packages/engine.io-client/lib/transports/polling-xhr.ts:75–83  ·  view source on GitHub ↗

* Starts a poll cycle. * * @private

()

Source from the content-addressed store, hash-verified

73 * @private
74 */
75 override doPoll() {
76 debug("xhr poll");
77 const req = this.request();
78 req.on("data", this.onData.bind(this));
79 req.on("error", (xhrStatus, context) => {
80 this.onError("xhr poll error", xhrStatus, context);
81 });
82 this.pollXhr = req;
83 }
84}
85
86interface RequestReservedEvents {

Callers

nothing calls this directly

Calls 5

debugFunction · 0.85
bindMethod · 0.80
requestMethod · 0.45
onMethod · 0.45
onErrorMethod · 0.45

Tested by

no test coverage detected