Get the status for a session. Returns Idle if not tracked. Matches TS `SessionStatus.get(sessionID)`.
(&self, session_id: &str)
| 68 | /// Get the status for a session. Returns Idle if not tracked. |
| 69 | /// Matches TS `SessionStatus.get(sessionID)`. |
| 70 | pub async fn get(&self, session_id: &str) -> SessionStatusInfo { |
| 71 | let state = self.state.read().await; |
| 72 | state.get(session_id).cloned().unwrap_or_default() |
| 73 | } |
| 74 | |
| 75 | /// List all tracked session statuses. |
| 76 | /// Matches TS `SessionStatus.list()`. |