MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / reply

Method reply

__tests__/query-pool.test.ts:59–61  ·  view source on GitHub ↗
(id: number, result: ToolResult)

Source from the content-addressed store, hash-verified

57 emitError(): void { this.errorCb?.(new Error('worker failed')); }
58 emitExit(): void { this.exitCb?.(13); }
59 private reply(id: number, result: ToolResult): void {
60 if (this.alive) this.msgCb?.({ type: 'result', id, result });
61 }
62 postMessage(msg: unknown): void {
63 const m = msg as CallMsg | { type: 'close' } | { type: 'trim' };
64 if (m?.type === 'trim') {

Callers 1

postMessageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected