red-dentist-96118
12/03/2025, 7:00 PMtall-airline-16756
12/03/2025, 7:01 PMtall-airline-16756
12/03/2025, 7:01 PMRemoveParticipant API (disconnect reason PARTICIPANT_REMOVED).
• The room was deleted via the DeleteRoom API (disconnect reason ROOM_DELETED).
• Network or media path failure (e.g., WebRTC keep-alives stopped, CONNECTION_TIMEOUT, PEER_CONNECTION_DISCONNECT, or STATE_MISMATCH).
• Unclean client disconnect or crash (client stopped responding and was timed out).
• Duplicate identity: another participant joined using the same identity and the earlier participant was disconnected.
• Participant marked idle/away (default timeout), combined with session logic that closes agent sessions.
If you want, tell me which disconnect reason(s) or event logs you see (for example: PARTICIPANT_REMOVED, ROOM_DELETED, STATE_MISMATCH, or CONNECTION_TIMEOUT) and the room/participant context — I can suggest the next troubleshooting steps.
Sources: Events and error handling | LiveKit docs | Agent server | LiveKit docs | Connecting to LiveKit | LiveKit docs | Understanding the STATE_MISMATCH Disconnect Reason | Server-side | livekit/livekit_composite | DeepWikired-dentist-96118
12/03/2025, 7:01 PMtall-airline-16756
12/03/2025, 7:02 PMRoom.disconnect() or an equivalent leave action. It maps to the server internal reason ParticipantCloseReasonClientRequestLeave and represents a normal, graceful disconnection initiated by the client (not a network failure, server action, or crash).
Sources: Server-side | livekit/livekit_composite | DeepWikired-dentist-96118
12/03/2025, 7:02 PMtall-airline-16756
12/03/2025, 7:02 PMRoom.disconnect()), a graceful, user‑driven disconnect rather than a network failure or server action.
If you want, I can outline which disconnect reasons you should treat like user hangups vs. errors for your logging or UX.