(port: number, sid?: string)
| 1 | import expect = require("expect.js"); |
| 2 | |
| 3 | export function url(port: number, sid?: string) { |
| 4 | let url = `http://localhost:${port}/engine.io/?EIO=4&transport=polling`; |
| 5 | if (sid) { |
| 6 | url += `&sid=${sid}`; |
| 7 | } |
| 8 | return url; |
| 9 | } |
| 10 | |
| 11 | export async function handshake(port: number) { |
| 12 | const res = await fetch(url(port)); |
no outgoing calls
no test coverage detected