Skip to content

Commit 95d17d4

Browse files
feat: added connectionId to NetworkScores
* feat: added ability to specify id for pc * fixes after review: used candidate pair id * renamed parameter back * renamed pc -> connectionId
1 parent 2d1791e commit 95d17d4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/NetworkScoresCalculator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class NetworkScoresCalculator implements INetworkScoresCalculator {
3232
return {
3333
outbound,
3434
inbound,
35+
connectionId,
3536
statsSamples: {
3637
inboundStatsSample,
3738
outboundStatsSample,

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export type NetworkQualityStatsSample = {
108108
export type NetworkScores = {
109109
outbound?: NetworkScore,
110110
inbound?: NetworkScore,
111+
connectionId?: string,
111112
statsSamples: {
112113
outboundStatsSample?: NetworkQualityStatsSample,
113114
inboundStatsSample?: NetworkQualityStatsSample,

0 commit comments

Comments
 (0)