(fix): connections (again)
This commit is contained in:
parent
e0b121c638
commit
c3a07b31ec
8 changed files with 66 additions and 29 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue