-
Notifications
You must be signed in to change notification settings - Fork 16
feat: on stats parsed callback #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🎉 This PR is included in version 1.13.0-tt-212-on-parsed-stats.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
src/WebRTCIssueDetector.ts
Outdated
@@ -133,7 +140,7 @@ class WebRTCIssueDetector { | |||
this.statsReporter.stopReporting(); | |||
} | |||
|
|||
public handleNewPeerConnection(pc: RTCPeerConnection): void { | |||
public handleNewPeerConnection({ pc, id }: { pc: RTCPeerConnection, id?: string }): void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend not adding a new id
property here, since RTCPeerConnection identifier is not in the spec and it may be confusing for those who do not use it.
The problem could be solved with a simple decorator with id
property around RTCPeerConnection on a client side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed contract break, changes are now backwards compatible
…webrtc-issue-detector into tt-212-on-parsed-stats
🎉 This PR is included in version 1.13.0-tt-212-on-parsed-stats.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 1.13.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.