websocked->websocket

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2024-04-16 11:22:32 +02:00
parent 07c1858912
commit fb46c4a9f4

View File

@@ -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<CallConnectDuration>({
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`,
);
}
}