(port: number, sid: string)
| 78 | } |
| 79 | |
| 80 | export async function eioPoll(port: number, sid: string) { |
| 81 | const response = await fetch( |
| 82 | `http://localhost:${port}/socket.io/?EIO=4&transport=polling&sid=${sid}`, |
| 83 | { |
| 84 | method: "get" |
| 85 | } |
| 86 | ); |
| 87 | |
| 88 | return response.text(); |
| 89 | } |
| 90 | |
| 91 | export async function eioPush(port: number, sid: string, body: BodyInit) { |
| 92 | const response = await fetch( |
no test coverage detected