Sessions owned by a specific user — used by the per-user API.
(userId: string)
| 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; |