repo: janusweb action: commit revision: path_from: revision_from: dd399be1a298ed1de3ae8126e617ec458df5515b: path_to: revision_to:
commit dd399be1a298ed1de3ae8126e617ec458df5515b Author: James BaicoianuDate: Wed Jun 22 01:43:44 2016 -0700 Added setUserId function diff --git a/scripts/external/JanusClientConnection.js b/scripts/external/JanusClientConnection.js
--- a/scripts/external/JanusClientConnection.js
+++ b/scripts/external/JanusClientConnection.js
@@ -328,6 +328,10 @@ JanusClientConnection.prototype.sendLogon = function() {
}
this.send(msgData);
};
+JanusClientConnection.prototype.setUserId = function(userId) {
+ this._userId = userId;
+ this.sendLogon();
+};
JanusClientConnection.prototype.send = function(msg) {
if (this._websocket.readyState == 0) {
-----END OF PAGE-----