Skip to content

Commit

Permalink
feat(meetings): do ip version detection in parallel with reachability
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-bazyl committed Sep 16, 2024
1 parent 4c321d2 commit 6c43d40
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/@webex/plugin-meetings/src/reachability/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ export default class Reachability extends EventsScope {
public async gatherReachability(): Promise<ReachabilityResults> {
// Fetch clusters and measure latency
try {
// kick off ip version detection. For now we don't await it, as we're doing it
// to gather the timings and send them with our reachability metrics
// @ts-ignore
this.webex.internal.device.ipNetworkDetector.detect();

const {clusters, joinCookie} = await this.reachabilityRequest.getClusters(
MeetingUtil.getIpVersion(this.webex)
);
Expand Down Expand Up @@ -513,6 +518,16 @@ export default class Reachability extends EventsScope {
tcp: this.getStatistics(results, 'tcp', false),
xtls: this.getStatistics(results, 'xtls', false),
},
ipver: {
// @ts-ignore
firstIpV4: this.webex.internal.device.ipNetworkDetector.firstIpV4,
// @ts-ignore
firstIpV6: this.webex.internal.device.ipNetworkDetector.firstIpV6,
// @ts-ignore
firstMdns: this.webex.internal.device.ipNetworkDetector.firstMdns,
// @ts-ignore
totalTime: this.webex.internal.device.ipNetworkDetector.totalTime,
},
};
Metrics.sendBehavioralMetric(
BEHAVIORAL_METRICS.REACHABILITY_COMPLETED,
Expand Down

0 comments on commit 6c43d40

Please sign in to comment.