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:
@ -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
|
||||
|
Reference in New Issue
Block a user