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

Method on

__tests__/parse-pool.test.ts:326–329  ·  view source on GitHub ↗
(event: string, cb: (...args: any[]) => void)

Source from the content-addressed store, hash-verified

324 terminatedAt: number | null = null;
325 constructor(private loadMs: number | null) {}
326 on(event: string, cb: (...args: any[]) => void): void {
327 if (event === 'message') this.msgCb = cb;
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(() => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected