(message: string)
| 267 | } |
| 268 | |
| 269 | async function serverWrite(message: string) { |
| 270 | if (!ws.current) { |
| 271 | throw Error('WebSocket not connected'); |
| 272 | } |
| 273 | return await sendMessageToWebsocket(ws.current, currentRequest.id, { |
| 274 | type: 'ws-write', |
| 275 | data: { |
| 276 | wsId: wsId.current, |
| 277 | message, |
| 278 | }, |
| 279 | }); |
| 280 | } |
| 281 | |
| 282 | async function handleWrite(message: string) { |
| 283 | try { |
no test coverage detected