MCPcopy
hub / github.com/codeaashu/claude-code / sendJSON

Function sendJSON

src/server/web/terminal.ts:206–208  ·  view source on GitHub ↗
(msg: Record<string, unknown>)

Source from the content-addressed store, hash-verified

204}
205
206function sendJSON(msg: Record<string, unknown>): void {
207 if (ws?.readyState === WebSocket.OPEN) ws.send(JSON.stringify(msg))
208}
209
210function connect(): void {
211 setStatus('connecting')

Callers 3

initTerminalFunction · 0.70
connectFunction · 0.70
startPingFunction · 0.70

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected