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

Method waitForFrame

packages/server-e2e/src/client.ts:464–472  ·  view source on GitHub ↗

Wait for the next frame satisfying `predicate`.

(
    predicate: (frame: AnyFrame) => boolean,
    opts?: { timeoutMs?: number },
  )

Source from the content-addressed store, hash-verified

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(

Callers 5

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
submitAndWaitMethod · 0.45
submitAndWaitStatefulMethod · 0.45

Calls 1

_requireWsMethod · 0.95

Tested by

no test coverage detected