MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getUserSessions

Method getUserSessions

src/server/web/session-manager.ts:113–115  ·  view source on GitHub ↗

Sessions owned by a specific user — used by the per-user API.

(userId: string)

Source from the content-addressed store, hash-verified

111
112 /** Sessions owned by a specific user — used by the per-user API. */
113 getUserSessions(userId: string) {
114 return this.store.listByUser(userId);
115 }
116
117 isUserAtConcurrentLimit(userId: string): boolean {
118 return this.store.countByUser(userId) >= this.maxSessionsPerUser;

Callers 1

pty-server.tsFile · 0.80

Calls 1

listByUserMethod · 0.80

Tested by

no test coverage detected