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

Function eioPoll

packages/socket.io/test/support/util.ts:123–133  ·  view source on GitHub ↗
(httpServer, sid)

Source from the content-addressed store, hash-verified

121}
122
123export function eioPoll(httpServer, sid): Promise<string> {
124 return new Promise((resolve) => {
125 request(httpServer)
126 .get("/socket.io/")
127 .query({ transport: "polling", EIO: 4, sid })
128 .expect(200)
129 .end((err, res) => {
130 resolve(res.text);
131 });
132 });
133}

Callers 3

close.tsFile · 0.90
initFunction · 0.90

Calls 1

endMethod · 0.45

Tested by

no test coverage detected