Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

πŸ›(frontend) treat client-initiated connect aborts as events

lebaudantoinee34f3dd21932
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f7b2c313..c6b955b6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,7 @@ and this project adheres to
- πŸ“(docs) fix minor typos in comments and docstrings
- ⬆️(backend) bump sqlparse from 0.5.5 to 0.6.0
- ⬆️(mail) bump @html-to/text-cli from 0.6.0 to 0.6.1
+- πŸ›(frontend) treat client-initiated connect aborts as events
## [1.27.0] - 2026-08-14
diff --git a/src/frontend/src/features/rooms/components/Conference.tsx b/src/frontend/src/features/rooms/components/Conference.tsx
index 7149f999..bb9e2a11 100644
--- a/src/frontend/src/features/rooms/components/Conference.tsx
+++ b/src/frontend/src/features/rooms/components/Conference.tsx
@@ -6,6 +6,8 @@ import {
usePersistentUserChoices,
} from '@livekit/components-react'
import {
+ ConnectionError,
+ ConnectionErrorReason,
DisconnectReason,
MediaDeviceFailure,
Room,
@@ -25,7 +27,11 @@ import { VideoConference } from '../livekit/prefabs/VideoConference'
import { css } from '@/styled-system/css'
import { BackgroundProcessorFactory } from '../livekit/components/blur'
import { LocalUserChoices } from '@/stores/userChoices'
-import { captureMediaEvent, reportError } from '@/features/analytics/telemetry'
+import {
+ captureEvent,
+ captureMediaEvent,
+ reportError,
+} from '@/features/analytics/telemetry'
import { useConfig } from '@/api/useConfig'
import { isFireFox } from '@/utils/livekit'
import { useIsMobile } from '@/utils/useIsMobile'
@@ -227,6 +233,16 @@ export const Conference = ({
onError={(e) => {
const failure = MediaDeviceFailure.getFailure(e)
if (failure && failure !== MediaDeviceFailure.Other) return
+
+ // connect() was aborted by a disconnect() before the join completed
+ if (
+ e instanceof ConnectionError &&
+ e.reason === ConnectionErrorReason.Cancelled
+ ) {
+ void captureEvent('connection-cancelled')
+ return
+ }
+
reportError('livekit_room_error', e, {
path: 'connect_publish',
})