feat(conference.js): add isConnectionInterrupted getter

This commit is contained in:
paweldomas 2016-07-28 11:09:22 -05:00
parent ecfc05bcc8
commit 11953cbb60
1 changed files with 10 additions and 0 deletions

View File

@ -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();