(fix): connections (again)

This commit is contained in:
Alois 2026-07-28 23:53:37 +02:00
commit c3a07b31ec
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
8 changed files with 66 additions and 29 deletions

View file

@ -75,6 +75,10 @@ impl ClientConnection {
self.rho_connection.read().await.clone()
}
pub async fn set_rho_connection(&self, rho_connection: Arc<RhoConnection>) {
*self.rho_connection.write().await = Some(rho_connection);
}
/// Send a CommunicationValue to the client
pub async fn send_message(self: Arc<Self>, cv: &CommunicationValue) {
if !*self.is_open.read().await {