(&self, session_id: &str)
| 29 | } |
| 30 | |
| 31 | pub fn get_state(&self, session_id: &str) -> Option<SessionState> { |
| 32 | self.states.get(session_id).map(|state| state.clone()) |
| 33 | } |
| 34 | |
| 35 | pub async fn update_state(&self, session_id: &str, new_state: SessionState) { |
| 36 | let should_emit = if let Some(mut state) = self.states.get_mut(session_id) { |