MCPcopy Create free account
hub / github.com/CopilotKit/aimock / destroy

Method destroy

src/ws-framing.ts:80–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 }
79
80 destroy(): void {
81 if (this.closed) return;
82 this.closed = true;
83 if (!this.socket.destroyed) {
84 this.socket.destroy();
85 }
86 this.emit("close", 1006, "Connection destroyed");
87 }
88
89 get isClosed(): boolean {
90 return this.closed;

Callers 2

closeMethod · 0.45
upgradeToWebSocketFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected