Wait for the next frame satisfying `predicate`.
(
predicate: (frame: AnyFrame) => boolean,
opts?: { timeoutMs?: number },
)
| 462 | |
| 463 | /** Wait for the next frame satisfying `predicate`. */ |
| 464 | waitForFrame( |
| 465 | predicate: (frame: AnyFrame) => boolean, |
| 466 | opts?: { timeoutMs?: number }, |
| 467 | ): Promise<AnyFrame> { |
| 468 | return this._requireWs().waitForFrame( |
| 469 | predicate, |
| 470 | opts?.timeoutMs ?? DEFAULT_FRAME_TIMEOUT_MS, |
| 471 | ); |
| 472 | } |
| 473 | |
| 474 | /** Poll `/sessions/{sid}` until it reaches `status`. */ |
| 475 | waitForSessionStatus( |
no test coverage detected