Skip to content

Commit

Permalink
fix: debug reports are missing key information (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhat-ha authored Nov 14, 2024
1 parent 5a6165a commit 4c26f46
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/js/src/Modules/Verto/webrtc/Peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,25 +91,25 @@ export default class Peer {
this._webrtcStatsReporter = webRTCStatsReporter();
this._session.execute(this._webrtcStatsReporter.start());

this._webrtcStatsReporter.debuggerInstance.on(
'timeline',
this._onDebugReportMessage
);

this._webrtcStatsReporter.debuggerInstance.addConnection({
pc: this.instance,
peerId: this.options.id,
connectionId: this.options.telnyxSessionId,
});

this._webrtcStatsReporter.debuggerInstance.on(
'timeline',
this._onDebugReportMessage
);
}

public stopDebugger() {
if (!this.options.debug) {
return;
}

this._webrtcStatsReporter.debuggerInstance.destroy();
this._session.execute(this._webrtcStatsReporter.stop());
this._webrtcStatsReporter.debuggerInstance.destroy();
}

private _logTransceivers() {
Expand Down

0 comments on commit 4c26f46

Please sign in to comment.