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

Method dropClient

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

Source from the content-addressed store, hash-verified

559 }
560
561 private dropClient(session: MCPSession): void {
562 if (!this.clients.delete(session)) return;
563 this.clientPeers.delete(session);
564 if (this.clients.size === 0) this.armIdleTimer();
565 }
566
567 private armIdleTimer(): void {
568 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