Track call disconnections

This commit is contained in:
David Baker
2023-07-20 18:22:17 +01:00
parent 1675770196
commit 4071c9029c
3 changed files with 19 additions and 0 deletions

View File

@@ -191,6 +191,7 @@ export function InCallView({
const onDisconnected = useCallback(
(reason?: DisconnectReason) => {
PosthogAnalytics.instance.eventCallDisconnected.track(reason);
logger.info("Disconnected from livekit call with reason ", reason);
onLeave(
new Error("Disconnected from LiveKit call with reason " + reason)