MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / dropClient

Method dropClient

src/mcp/daemon.ts:471–475  ·  view source on GitHub ↗
(session: MCPSession)

Source from the content-addressed store, hash-verified

469 }
470
471 private dropClient(session: MCPSession): void {
472 if (!this.clients.delete(session)) return;
473 this.clientPeers.delete(session);
474 if (this.clients.size === 0) this.armIdleTimer();
475 }
476
477 private armIdleTimer(): void {
478 if (this.idleTimer || this.stopping) return;

Callers 2

handleConnectionMethod · 0.95
reapDeadClientsMethod · 0.95

Calls 2

armIdleTimerMethod · 0.95
deleteMethod · 0.65

Tested by

no test coverage detected