(patch: Partial<Config>)
| 68 | } |
| 69 | |
| 70 | patchConfig(patch: Partial<Config>): void { |
| 71 | const msg: ClientMessage = { type: "patchConfig", patch }; |
| 72 | if (this.ws?.readyState === WebSocket.OPEN) { |
| 73 | this.ws.send(JSON.stringify(msg)); |
| 74 | } |
| 75 | // Optimistic local merge so the tracker reacts immediately. |
| 76 | this.config = mergeConfig(this.config, patch); |
| 77 | this.events.onConfig?.(this.config); |
| 78 | } |
| 79 | |
| 80 | private open(): void { |
| 81 | const ws = new WebSocket(this.url); |
nothing calls this directly
no test coverage detected