(msg: TrackerClientMessage)
| 91 | } |
| 92 | |
| 93 | send(msg: TrackerClientMessage): void { |
| 94 | if (this.ws?.readyState === WebSocket.OPEN) { |
| 95 | this.ws.send(JSON.stringify(msg)); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | subscribe(fn: Listener): () => void { |
| 100 | this.listeners.add(fn); |
no outgoing calls
no test coverage detected