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

Method _requireWs

packages/server-e2e/src/client.ts:658–663  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

656
657 // ── internals ───────────────────────────────────────────────────────────
658 private _requireWs(): WsClient {
659 if (!this._ws) {
660 throw new Error('ws not connected — call `await client.connect()` first');
661 }
662 return this._ws;
663 }
664
665 private async _sendWsControl<T>(
666 type: string,

Callers 9

subscribeMethod · 0.95
unsubscribeMethod · 0.95
onFrameMethod · 0.95
waitForFrameMethod · 0.95
onApprovalRequestedMethod · 0.95
onQuestionAskedMethod · 0.95
submitAndWaitMethod · 0.95
submitAndWaitStatefulMethod · 0.95
_sendWsControlMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected