MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / waitForFrame

Function waitForFrame

packages/server-e2e/src/wait.ts:18–24  ·  view source on GitHub ↗
(
  ws: WsClient,
  predicate: (frame: AnyFrame) => boolean,
  opts?: { timeoutMs?: number },
)

Source from the content-addressed store, hash-verified

16 * the default timeout — most scenarios shouldn't have to think about it.
17 */
18export 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

Callers

nothing calls this directly

Calls 1

waitForFrameMethod · 0.45

Tested by

no test coverage detected