little-article-83676
08/31/2025, 5:05 AMtall-airline-16756
08/31/2025, 5:05 AMtall-airline-16756
08/31/2025, 5:05 AMRoom.disconnect().
• Duplicate Identity: Someone else joins with the same identity.
• Server Shutdown: The LiveKit server instance stops running.
• Participant Removed: The participant gets removed via the API.
• Room Deleted: The room is deleted using the API.
• State Mismatch: The client tries to resume a session, but the server doesn’t recognize it.
• Join Failure: Connection problems due to network or authentication issues.
• Migration: The server asks the participant to move their connection elsewhere.
• Signal Close: An unexpected WebSocket disconnection, often caused by network hiccups.
• Room Closed: The room closes automatically when everyone leaves.
• Connection Timeout: The session times out because of inactivity or unstable network.
• Media Failure: Problems or timeouts with the media stream.
If you’re dealing with a specific disconnection and want a hand figuring it out, just share the details with me—I’m here to help!
Sources: agent-console/lib/event-types.ts | livekit-ffi/protocol/participant.proto | livekit-android-test/src/test/java/io/livekit/android/room/RoomMockE2ETest.... | livekit/livekit_models.pb.go | Connecting to LiveKit | LiveKit Docslittle-article-83676
08/31/2025, 5:07 AMtall-airline-16756
08/31/2025, 5:07 AMreceived session close: signal client closed: stream closed UnknownReason Resume means that the signaling WebSocket connection got closed unexpectedly. Let me break it down for you:
• Signal Client Closed: This means the WebSocket connection used for signaling ended suddenly, usually because of some network hiccup.
• UnknownReason: The server isn’t quite sure why the connection dropped.
• Resume: LiveKit is trying to pick things back up by using ICE restart and signaling reconnect, instead of doing a full reconnect.
This is part of how LiveKit keeps things running smoothly even when the network acts up. If the resume doesn’t work, it will try a full reconnection. Feel free to reach out if you want me to help you dig into this more!
Sources: livekit/src/rtc_engine/rtc_session.rs | livekit/livekit_models.pb.go | Connecting to LiveKit | LiveKit Docs | Connecting to LiveKit | LiveKit Docs