repo: janusweb action: commit revision: path_from: revision_from: d93c7a3c9b69b4daa6a1641e87e6f3165441d38f: path_to: revision_to:
commit d93c7a3c9b69b4daa6a1641e87e6f3165441d38f Author: James BaicoianuDate: Wed Jun 14 15:28:06 2017 -0700 Handle case where server connection doesn't have an associated room URL diff --git a/scripts/external/JanusClientConnection.js b/scripts/external/JanusClientConnection.js
--- a/scripts/external/JanusClientConnection.js
+++ b/scripts/external/JanusClientConnection.js
@@ -350,10 +350,12 @@ JanusClientConnection.prototype.sendLogon = function() {
'method': 'logon',
'data': {
'userId': this._userId,
- 'version': this._version,
- 'roomId': md5(this._roomUrl)
+ 'version': this._version
}
}
+ if (this._roomUrl) {
+ msgData.data.roomId = md5(this._roomUrl);
+ }
this.send(msgData);
};
JanusClientConnection.prototype.setUserId = function(userId) {
-----END OF PAGE-----