(opts: BroadcastOptions)
| 12 | |
| 13 | class DummyAdapter extends Adapter { |
| 14 | fetchSockets(opts: BroadcastOptions): Promise<any[]> { |
| 15 | return Promise.resolve([ |
| 16 | { |
| 17 | id: "42", |
| 18 | handshake: { |
| 19 | headers: { |
| 20 | accept: "*/*", |
| 21 | }, |
| 22 | query: { |
| 23 | transport: "polling", |
| 24 | EIO: "4", |
| 25 | }, |
| 26 | }, |
| 27 | rooms: ["42", "room1"], |
| 28 | data: { |
| 29 | username: "john", |
| 30 | }, |
| 31 | }, |
| 32 | ]); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | describe("utility methods", () => { |