1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Check out whether a conversations can be used for calls or not

This commit is contained in:
2021-02-08 18:14:15 +01:00
parent a2b2fc89cf
commit 01b83dfa8f
4 changed files with 43 additions and 3 deletions

View File

@ -99,6 +99,15 @@ fn get_active_connection() -> Option<Addr<RtcRelayActor>> {
conn
}
/// Check out whether a relay is currently connected to the API or not
pub fn is_connected() -> bool {
if let Some(conn) = get_active_connection() {
return conn.connected();
}
false
}
/// Establish a new connection with the RTC relay
///
/// Debug with