Skip to content

Commit

Permalink
feat: added connectionId to NetworkScores
Browse files Browse the repository at this point in the history
* feat: added ability to specify id for pc

* fixes after review: used candidate pair id

* renamed parameter back

* renamed pc -> connectionId
  • Loading branch information
IlgamGabdullin authored May 16, 2024
1 parent 2d1791e commit 95d17d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/NetworkScoresCalculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class NetworkScoresCalculator implements INetworkScoresCalculator {
return {
outbound,
inbound,
connectionId,
statsSamples: {
inboundStatsSample,
outboundStatsSample,
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export type NetworkQualityStatsSample = {
export type NetworkScores = {
outbound?: NetworkScore,
inbound?: NetworkScore,
connectionId?: string,
statsSamples: {
outboundStatsSample?: NetworkQualityStatsSample,
inboundStatsSample?: NetworkQualityStatsSample,
Expand Down

0 comments on commit 95d17d4

Please sign in to comment.