From fb46c4a9f4b5104ca5ea4580901dcaeb94de1f05 Mon Sep 17 00:00:00 2001 From: Timo K Date: Tue, 16 Apr 2024 11:22:32 +0200 Subject: [PATCH] websocked->websocket Signed-off-by: Timo K --- src/analytics/PosthogEvents.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/analytics/PosthogEvents.ts b/src/analytics/PosthogEvents.ts index 9f51a74b..778392ba 100644 --- a/src/analytics/PosthogEvents.ts +++ b/src/analytics/PosthogEvents.ts @@ -206,7 +206,7 @@ export class CallDisconnectedEventTracker { interface CallConnectDuration extends IPosthogEvent { eventName: "CallConnectDuration"; totalDuration: number; - websockedDuration: number; + websocketDuration: number; peerConnectionDuration: number; } @@ -228,12 +228,12 @@ export class CallConnectDurationTracker { PosthogAnalytics.instance.trackEvent({ eventName: "CallConnectDuration", totalDuration, - websocketDuration: this.websocketConnected - this.connectStart, - peerConnectionDuration: Date.now() - this.websocketConnected, + websocketDuration, + peerConnectionDuration, }); if (options.log) logger.log( - `Time to connect:\ntotal: ${totalDuration}ms\npeerConnection: ${websockedDuration}ms\nwebsocket: ${peerConnectionDuration}ms`, + `Time to connect:\ntotal: ${totalDuration}ms\npeerConnection: ${websocketDuration}ms\nwebsocket: ${peerConnectionDuration}ms`, ); } }