MCPcopy Create free account
hub / github.com/codeaashu/claude-code / constructor

Method constructor

src/server/web/session-manager.ts:21–24  ·  view source on GitHub ↗
(maxPerHour: number)

Source from the content-addressed store, hash-verified

19 private readonly maxPerHour: number;
20
21 constructor(maxPerHour: number) {
22 this.maxPerHour = maxPerHour;
23 setInterval(() => this.cleanup(), 5 * 60_000).unref();
24 }
25
26 allow(userId: string): boolean {
27 return this.recent(userId).length < this.maxPerHour;

Callers

nothing calls this directly

Calls 1

cleanupMethod · 0.95

Tested by

no test coverage detected