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

Method onFrame

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

Subscribe to ALL incoming frames. Returns an unsubscribe handle.

(handler: (frame: AnyFrame) => void)

Source from the content-addressed store, hash-verified

457 // ── WS observation ──────────────────────────────────────────────────────
458 /** Subscribe to ALL incoming frames. Returns an unsubscribe handle. */
459 onFrame(handler: (frame: AnyFrame) => void): () => void {
460 return this._requireWs().onFrame(handler);
461 }
462
463 /** Wait for the next frame satisfying `predicate`. */
464 waitForFrame(

Callers 3

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls 1

_requireWsMethod · 0.95

Tested by

no test coverage detected