Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(conference.js): add isConnectionInterrupted getter

paweldomas11953cbb6025
diff --git a/conference.js b/conference.js
index b0edba985c..868889d53a 100644
--- a/conference.js
+++ b/conference.js
@@ -661,6 +661,16 @@ export default {
return this._room
&& this._room.getConnectionState();
},
+ /**
+ * Checks whether or not our connection is currently in interrupted and
+ * reconnect attempts are in progress.
+ *
+ * @returns {boolean} true if the connection is in interrupted state or
+ * false otherwise.
+ */
+ isConnectionInterrupted () {
+ return connectionIsInterrupted;
+ },
getMyUserId () {
return this._room
&& this._room.myUserId();