MCPcopy Create free account
hub / github.com/agent-tower/core / destroy

Method destroy

packages/server/src/socket/socket-gateway.ts:33–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 private readonly terminalManager: TerminalManager
32 ) {
33 this.registerEventBusForwarders();
34 }
35
36 destroy(): void {
37 for (const cleanup of this.cleanups) {
38 cleanup();
39 }
40 this.cleanups = [];
41 }

Callers 6

terminalRoutesFunction · 0.45
writeUpgradeErrorFunction · 0.45
requestWebSocketUpgradeFunction · 0.45
initializeSocketFunction · 0.45
closeSocketFunction · 0.45

Calls 1

cleanupFunction · 0.50

Tested by 1

requestWebSocketUpgradeFunction · 0.36