()
| 217 | }; |
| 218 | |
| 219 | const ensureWebSocket = async () => { |
| 220 | if (!ws.value || isConnected.value === false) { |
| 221 | await initWebSocket(); |
| 222 | } |
| 223 | return ws.value; |
| 224 | }; |
| 225 | |
| 226 | const onMessage = (handler: (msg: any) => void) => { |
| 227 | if (!ws.value) { |
nothing calls this directly
no test coverage detected