(id)
| 61 | it("should exclude sockets in specific rooms when broadcasting", () => { |
| 62 | let ids = []; |
| 63 | function socket(id) { |
| 64 | return [ |
| 65 | id, |
| 66 | { |
| 67 | id, |
| 68 | client: { |
| 69 | writeToEngine(payload, opts) { |
| 70 | expect(payload).to.eql(["123"]); |
| 71 | expect(opts.preEncoded).to.eql(true); |
| 72 | ids.push(id); |
| 73 | }, |
| 74 | }, |
| 75 | }, |
| 76 | ]; |
| 77 | } |
| 78 | const nsp = { |
| 79 | server: { |
| 80 | encoder: { |