waygraph / subscribeSession
Function: subscribeSession()
subscribeSession(
projectDir,sessionId,onMessage,timeoutMs?):Promise<{closed:Promise<void>;close():void; }>
Defined in: src/live/auto-session/feed.ts:37
The client side: subscribes to a running session and calls onMessage for each line until close() (or the session ends). Rejects when the session is unknown or does not answer the subscribe.
Parameters
projectDir
string
sessionId
string
onMessage
(message) => void
timeoutMs?
number = 15_000
Returns
Promise<{ closed: Promise<void>; close(): void; }>