(httpServer, sid: string, body: string)
| 108 | } |
| 109 | |
| 110 | export 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 | |
| 123 | export function eioPoll(httpServer, sid): Promise<string> { |
| 124 | return new Promise((resolve) => { |
no test coverage detected