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

Method dropClient

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

Source from the content-addressed store, hash-verified

384 }
385
386 private dropClient(session: MCPSession): void {
387 if (!this.clients.delete(session)) return;
388 this.clientPeers.delete(session);
389 if (this.clients.size === 0) this.armIdleTimer();
390 }
391
392 private armIdleTimer(): void {
393 if (this.idleTimer || this.stopping) return;

Callers 2

handleConnectionMethod · 0.95
reapDeadClientsMethod · 0.95

Calls 1

armIdleTimerMethod · 0.95

Tested by

no test coverage detected