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

Method close

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

Initiate close from the client side.

()

Source from the content-addressed store, hash-verified

177
178 /** Initiate close from the client side. */
179 async close(): Promise<void> {
180 if (!this.ws || this._closed) return;
181 this.ws.close();
182 await this.closed();
183 }
184
185 private _onMessage(data: unknown): void {
186 let frame: AnyFrame;

Callers

nothing calls this directly

Calls 2

closedMethod · 0.95
closeMethod · 0.65

Tested by

no test coverage detected