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

Method close

packages/server/src/ws/connection.ts:720–728  ·  view source on GitHub ↗
(code = 1000, reason?: string)

Source from the content-addressed store, hash-verified

718 }
719
720 public close(code = 1000, reason?: string): void {
721 if (this.closed) return;
722 try {
723 this.socket.close(code, reason);
724 } catch {
725
726 }
727
728 }
729
730 public get hasClientHello(): boolean {
731 return this.gotClientHello;

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected