Skip to content

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; }>

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed