Create a status manager with bus event publishing.
(bus: Arc<Bus>)
| 59 | |
| 60 | /// Create a status manager with bus event publishing. |
| 61 | pub fn with_bus(bus: Arc<Bus>) -> Self { |
| 62 | Self { |
| 63 | state: Arc::new(RwLock::new(HashMap::new())), |
| 64 | bus: Some(bus), |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | /// Get the status for a session. Returns Idle if not tracked. |
| 69 | /// Matches TS `SessionStatus.get(sessionID)`. |