diff --git a/modules/xmpp/ChatRoom.js b/modules/xmpp/ChatRoom.js index 0b1a4bdf3..5e943bd3d 100644 --- a/modules/xmpp/ChatRoom.js +++ b/modules/xmpp/ChatRoom.js @@ -260,6 +260,7 @@ ChatRoom.prototype.onPresence = function (pres) { } if (!this.joined) { this.joined = true; + console.log("(TIME) MUC joined:\t", window.performance.now()); this.eventEmitter.emit(XMPPEvents.MUC_JOINED, from, member); } } else if (this.members[from] === undefined) { diff --git a/modules/xmpp/JingleSessionPC.js b/modules/xmpp/JingleSessionPC.js index 78373ae86..d3f70713b 100644 --- a/modules/xmpp/JingleSessionPC.js +++ b/modules/xmpp/JingleSessionPC.js @@ -146,6 +146,8 @@ JingleSessionPC.prototype.doInitialize = function () { */ this.peerconnection.oniceconnectionstatechange = function (event) { if (!(self && self.peerconnection)) return; + logger.log("(TIME) ICE " + self.peerconnection.iceConnectionState + + ":\t", window.performance.now()); self.updateModifySourcesQueue(); switch (self.peerconnection.iceConnectionState) { case 'connected': diff --git a/modules/xmpp/strophe.jingle.js b/modules/xmpp/strophe.jingle.js index 24f770cc5..a53c24b4f 100644 --- a/modules/xmpp/strophe.jingle.js +++ b/modules/xmpp/strophe.jingle.js @@ -94,6 +94,8 @@ module.exports = function(XMPP, eventEmitter) { // see http://xmpp.org/extensions/xep-0166.html#concepts-session switch (action) { case 'session-initiate': + console.log("(TIME) received session-initiate:\t", + window.performance.now()); var startMuted = $(iq).find('jingle>startmuted'); if (startMuted && startMuted.length > 0) { var audioMuted = startMuted.attr("audio"); diff --git a/modules/xmpp/xmpp.js b/modules/xmpp/xmpp.js index 00ac47a95..703377f46 100644 --- a/modules/xmpp/xmpp.js +++ b/modules/xmpp/xmpp.js @@ -103,8 +103,8 @@ XMPP.prototype._connect = function (jid, password) { var connectionFailed = false; var lastErrorMsg; this.connection.connect(jid, password, function (status, msg) { - logger.log('Strophe status changed to', - Strophe.getStatusString(status), msg); + logger.log("(TIME) Strophe " + Strophe.getStatusString(status) + + (msg ? "[" + msg + "]" : "") + "\t:" + window.performance.now()); if (status === Strophe.Status.CONNECTED) { if (self.options.useStunTurn) { self.connection.jingle.getStunAndTurnCredentials();