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

Method dropClient

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

Source from the content-addressed store, hash-verified

572 }
573
574 private dropClient(session: MCPSession): void {
575 if (!this.clients.delete(session)) return;
576 this.clientPeers.delete(session);
577 if (this.clients.size === 0) this.armIdleTimer();
578 }
579
580 private armIdleTimer(): void {
581 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