MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / sendControl

Method sendControl

src/workspaces/persistent-session.ts:567–575  ·  view source on GitHub ↗
(msg: ServerControlMessage)

Source from the content-addressed store, hash-verified

565 }
566
567 private sendControl(msg: ServerControlMessage): void {
568 const ws = this.ws;
569 if (ws === null || ws.readyState !== ws.OPEN) return;
570 try {
571 ws.send(JSON.stringify(msg));
572 } catch {
573 // ignore — ws may have just closed
574 }
575 }
576
577 private startCursorTimer(): void {
578 if (this.cursorTimer) clearInterval(this.cursorTimer);

Callers 3

onChildExitMethod · 0.95
respawnNowMethod · 0.95
maybeSendCursorMethod · 0.95

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected