[Fix] User States

This commit is contained in:
Alex 2026-08-07 23:54:28 +02:00
commit da5a5a5dff
Signed by: alex
SSH key fingerprint: SHA256:D1+Ub8o0v4K5y1JNivW8IxEOelqLSvPmUzBbDIoZkRQ
12 changed files with 1156 additions and 232 deletions

View file

@ -135,4 +135,17 @@ impl RhoManager {
.map(|entry| entry.value().clone())
.collect()
}
pub async fn get_client_connection(
&self,
user_id: i64,
session_id: i64,
) -> Option<Arc<super::client_connection::ClientConnection>> {
for rho in self.connections().await {
if let Some(client) = rho.get_client_connection(user_id, session_id).await {
return Some(client);
}
}
None
}
}