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

Method onFrame

packages/server-e2e/src/ws.ts:113–118  ·  view source on GitHub ↗

Register a frame subscriber. Returns an unsubscribe handle.

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

Source from the content-addressed store, hash-verified

111
112 /** Register a frame subscriber. Returns an unsubscribe handle. */
113 onFrame(handler: (f: AnyFrame) => void): () => void {
114 this._subscribers.add(handler);
115 return () => {
116 this._subscribers.delete(handler);
117 };
118 }
119
120 /**
121 * Wait for the next frame matching `predicate`. Drains queued frames first;

Callers 5

openSocketWithHelloFunction · 0.95
openSocketWithHelloFunction · 0.95
installReverseRpcHandlerFunction · 0.45

Calls 2

addMethod · 0.65
deleteMethod · 0.65

Tested by 1

openSocketWithHelloFunction · 0.76