From 95d17d4309bc9223062d8fdeb32db4fe16df55ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=BB=D1=8C=D0=B3=D0=B0=D0=BC=20=D0=93=D0=B0=D0=B1?= =?UTF-8?q?=D0=B4=D1=83=D0=BB=D0=BB=D0=B8=D0=BD?= Date: Thu, 16 May 2024 08:31:08 +0300 Subject: [PATCH] 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 --- src/NetworkScoresCalculator.ts | 1 + src/types.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/NetworkScoresCalculator.ts b/src/NetworkScoresCalculator.ts index 39681ae..49f96b4 100644 --- a/src/NetworkScoresCalculator.ts +++ b/src/NetworkScoresCalculator.ts @@ -32,6 +32,7 @@ class NetworkScoresCalculator implements INetworkScoresCalculator { return { outbound, inbound, + connectionId, statsSamples: { inboundStatsSample, outboundStatsSample, diff --git a/src/types.ts b/src/types.ts index 3b89d8c..741cd63 100644 --- a/src/types.ts +++ b/src/types.ts @@ -108,6 +108,7 @@ export type NetworkQualityStatsSample = { export type NetworkScores = { outbound?: NetworkScore, inbound?: NetworkScore, + connectionId?: string, statsSamples: { outboundStatsSample?: NetworkQualityStatsSample, inboundStatsSample?: NetworkQualityStatsSample,