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

Method receive

src/webui/workspaces-ipc.ts:67–70  ·  view source on GitHub ↗
(raw: unknown, isBinary: boolean)

Source from the content-addressed store, hash-verified

65 }
66
67 receive(raw: unknown, isBinary: boolean): void {
68 if (this.readyState !== this.OPEN) return
69 this.emit('message', coerceBuffer(raw), isBinary)
70 }
71
72 clientClosed(): void {
73 if (this.readyState !== this.OPEN) return

Callers 1

onMessageFunction · 0.95

Calls 1

coerceBufferFunction · 0.85

Tested by

no test coverage detected