Skip to content

Commit 19163bb

Browse files
committed
fix: Update README
1 parent 035c379 commit 19163bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ const webRtcIssueDetector = new WebRTCIssueDetector({
2828
onIssues: (issues) => issues.map((issue) => {
2929
console.log('Issues type:', issue.type); // eg. "network"
3030
console.log('Issues reason:', issue.reason); // eg. "outbound-network-throughput"
31-
console.log('Issues reason:', issue.statsSample); // eg. "packetLossPct: 12%, avgJitter: 230, rtt: 150"
31+
console.log('Stats:', issue.statsSample); // eg. "packetLossPct: 12%, avgJitter: 230, rtt: 150"
3232
}),
3333
onNetworkScoresUpdated: (scores) => {
3434
console.log('Inbound network score', scores.inbound); // eg. 3.7
3535
console.log('Outbound network score', scores.outbound); // eg. 4.5
36+
console.log('Network stats', scores.statsSamples); // eg. { inboundStatsSample: { avgJitter: 0.1, rtt: 30, packetsLoss: 8 }, ... }
3637
}
3738
});
3839

0 commit comments

Comments
 (0)