(ws: WebSocketLike)
| 428 | } |
| 429 | |
| 430 | function sendKeepalive(ws: WebSocketLike): void { |
| 431 | if (ws.readyState === WebSocket.OPEN) { |
| 432 | ws.send(encodeChunk(new Uint8Array(0))) |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | function forwardToWs(ws: WebSocketLike, data: Buffer): void { |
| 437 | if (ws.readyState !== WebSocket.OPEN) return |
nothing calls this directly
no test coverage detected