MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / send

Method send

apps/kimi-web/src/api/daemon/ws.ts:465–473  ·  view source on GitHub ↗
(msg: unknown)

Source from the content-addressed store, hash-verified

463 }
464
465 private send(msg: unknown): void {
466 if (!this.ws || this.ws.readyState !== WebSocket.OPEN) return;
467 try {
468 this.ws.send(JSON.stringify(msg));
469 traceWsOut(msg);
470 } catch {
471 // Ignore send errors (socket closing races)
472 }
473 }
474
475 private nextId(): string {
476 return `c_${++this.msgSeq}`;

Callers 10

unsubscribeMethod · 0.95
abortMethod · 0.95
terminalInputMethod · 0.95
terminalResizeMethod · 0.95
terminalDetachMethod · 0.95
terminalCloseMethod · 0.95
handleFrameMethod · 0.95
onServerHelloMethod · 0.95
sendSubscribeMethod · 0.95
sendTerminalAttachMethod · 0.95

Calls 2

traceWsOutFunction · 0.90
sendMethod · 0.65

Tested by

no test coverage detected