Skip to content

Commit

Permalink
log: Log PC connection state changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrozev authored and jallamsetty1 committed Jan 27, 2025
1 parent 8869b30 commit ca734af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/xmpp/JingleSessionPC.js
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,9 @@ export default class JingleSessionPC extends JingleSession {
this.peerconnection.onconnectionstatechange = () => {
const icestate = this.peerconnection.iceConnectionState;

logger.log(`(TIME) ${this.isP2P ? 'P2P' : 'JVB'} PC state is now ${this.peerconnection.connectionState} `
+ `(ICE state ${this.peerconnection.iceConnectionState}):\t`, window.performance.now());

switch (this.peerconnection.connectionState) {
case 'failed':
// Since version 76 Chrome no longer switches ICE connection
Expand Down

0 comments on commit ca734af

Please sign in to comment.