MCPcopy Index your code
hub / github.com/socketio/socket.io / eioPush

Function eioPush

test/support/util.ts:111–122  ·  view source on GitHub ↗
(httpServer, sid: string, body: string)

Source from the content-addressed store, hash-verified

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

Callers 3

close.tsFile · 0.90
initFunction · 0.90

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected