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

Method release

src/server/web/user-store.ts:47–54  ·  view source on GitHub ↗

* Called when a session is destroyed for a user. * Decrements sessionCount; removes the record when it reaches zero.

(userId: string)

Source from the content-addressed store, hash-verified

45 * Decrements sessionCount; removes the record when it reaches zero.
46 */
47 release(userId: string): void {
48 const record = this.users.get(userId);
49 if (!record) return;
50 record.sessionCount = Math.max(0, record.sessionCount - 1);
51 if (record.sessionCount === 0) {
52 this.users.delete(userId);
53 }
54 }
55
56 /** Returns all currently connected users (sessionCount > 0). */
57 list(): UserRecord[] {

Callers 1

pty-server.tsFile · 0.80

Calls 3

maxMethod · 0.80
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected