(readonly url: string)
| 467 | readonly sent: string[] = []; |
| 468 | |
| 469 | constructor(readonly url: string) { |
| 470 | super(); |
| 471 | FakeWebSocket.instances.push(this); |
| 472 | queueMicrotask(() => this.emit('open')); |
| 473 | } |
| 474 | |
| 475 | send(data: string): void { |
| 476 | this.sent.push(data); |