(
ws: WsClient,
predicate: (frame: AnyFrame) => boolean,
opts?: { timeoutMs?: number },
)
| 16 | * the default timeout — most scenarios shouldn't have to think about it. |
| 17 | */ |
| 18 | export function waitForFrame( |
| 19 | ws: WsClient, |
| 20 | predicate: (frame: AnyFrame) => boolean, |
| 21 | opts?: { timeoutMs?: number }, |
| 22 | ): Promise<AnyFrame> { |
| 23 | return ws.waitForFrame(predicate, opts?.timeoutMs ?? DEFAULT_FRAME_TIMEOUT_MS); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Poll `GET /sessions/{sid}` until `status` matches. Useful as a final |
nothing calls this directly
no test coverage detected