Skip to content

Commit ca734af

Browse files
bgrozevjallamsetty1
authored andcommitted
log: Log PC connection state changes.
1 parent 8869b30 commit ca734af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/xmpp/JingleSessionPC.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,6 +1468,9 @@ export default class JingleSessionPC extends JingleSession {
14681468
this.peerconnection.onconnectionstatechange = () => {
14691469
const icestate = this.peerconnection.iceConnectionState;
14701470

1471+
logger.log(`(TIME) ${this.isP2P ? 'P2P' : 'JVB'} PC state is now ${this.peerconnection.connectionState} `
1472+
+ `(ICE state ${this.peerconnection.iceConnectionState}):\t`, window.performance.now());
1473+
14711474
switch (this.peerconnection.connectionState) {
14721475
case 'failed':
14731476
// Since version 76 Chrome no longer switches ICE connection

0 commit comments

Comments
 (0)