MCPcopy Index your code
hub / github.com/codeaashu/claude-code / sendKeepalive

Function sendKeepalive

src/upstreamproxy/relay.ts:430–434  ·  view source on GitHub ↗
(ws: WebSocketLike)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

encodeChunkFunction · 0.85
sendMethod · 0.65

Tested by

no test coverage detected