repo: janusweb
action: commit
revision: 
path_from: 
revision_from: dd399be1a298ed1de3ae8126e617ec458df5515b:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit dd399be1a298ed1de3ae8126e617ec458df5515b
Author: James Baicoianu 
Date:   Wed Jun 22 01:43:44 2016 -0700

    Added setUserId function

diff --git a/scripts/external/JanusClientConnection.js b/scripts/external/JanusClientConnection.js
index 95ebb2575668a907608150e4d33050dd0ef299d0..
index ..345bef733be39d6c9ff1b8df8db9d709949013c9 100644
--- 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-----