Dispose ONE session by id. Returns false if not found.
(recordId: string, reason: string)
| 173 | |
| 174 | /** Dispose ONE session by id. Returns false if not found. */ |
| 175 | disposeToken(recordId: string, reason: string): boolean { |
| 176 | const session = this.sessions.get(recordId); |
| 177 | if (!session) return false; |
| 178 | session.dispose(reason); |
| 179 | return true; |
| 180 | } |
| 181 | |
| 182 | /** Dispose ALL sessions for a workspace (DELETE /workspaces/:id). */ |
| 183 | dispose(wsId: string, reason: string): boolean { |
no test coverage detected