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

Function eioPush

packages/socket.io/test/support/util.ts:110–121  ·  view source on GitHub ↗
(httpServer, sid: string, body: string)

Source from the content-addressed store, hash-verified

108}
109
110export function eioPush(httpServer, sid: string, body: string): Promise<void> {
111 return new Promise((resolve) => {
112 request(httpServer)
113 .post("/socket.io/")
114 .send(body)
115 .query({ transport: "polling", EIO: 4, sid })
116 .expect(200)
117 .end(() => {
118 resolve();
119 });
120 });
121}
122
123export function eioPoll(httpServer, sid): Promise<string> {
124 return new Promise((resolve) => {

Callers 3

close.tsFile · 0.90
initFunction · 0.90

Calls 2

endMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected