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

Method postMessage

__tests__/parse-pool.test.ts:330–337  ·  view source on GitHub ↗
(msg: unknown)

Source from the content-addressed store, hash-verified

328 else if (event === 'exit') this.exitCb = cb;
329 }
330 postMessage(msg: unknown): void {
331 if ((msg as { type: string }).type !== 'load-grammars' || this.loadMs === null) return;
332 setTimeout(() => {
333 if (this.terminatedAt !== null) return;
334 this.loadedAt = performance.now();
335 this.msgCb?.({ type: 'grammars-loaded' });
336 }, this.loadMs);
337 }
338 exit(code: number): void { this.exitCb?.(code); }
339 terminate(): Promise<number> { this.terminatedAt = performance.now(); return Promise.resolve(0); }
340}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected