()
| 261 | }; |
| 262 | |
| 263 | const getWebSocket = async () => { |
| 264 | if (ws) { |
| 265 | await waitForConnection(ws); |
| 266 | return ws; |
| 267 | } |
| 268 | |
| 269 | const newWs = await createWebSocket({ onClose: reconnectWebSocket }); |
| 270 | await waitForConnection(newWs); |
| 271 | |
| 272 | return newWs; |
| 273 | }; |
| 274 | |
| 275 | const sendInferEntitiesMessage = async ( |
| 276 | params: |
no test coverage detected