MCPcopy Create free account
hub / github.com/chekusu/wanman / onEvent

Method onEvent

packages/runtime/src/claude-code.ts:84–84  ·  view source on GitHub ↗

Register a handler for parsed JSONL events

(handler: (event: ClaudeEvent) => void)

Source from the content-addressed store, hash-verified

82 wait(): Promise<number>;
83 /** Register a handler for parsed JSONL events */
84 onEvent(handler: (event: ClaudeEvent) => void): void;
85 /** Register a handler for the final result */
86 onResult(handler: (result: string, isError: boolean) => void): void;
87 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected