icy-salesclerk-19784
11/05/2025, 3:28 PMtall-airline-16756
11/05/2025, 3:28 PMtall-airline-16756
11/05/2025, 3:29 PMroom.disconnect() during shutdown (e.g., app close, page unload). If this isn’t called, the server removes the participant after ~15s. Some platforms auto-disconnect on exit, but it’s best to call it explicitly for reliability. Docs
• From the server (if the client can’t run cleanup): use the RemoveParticipant API to forcibly disconnect a participant. To prevent immediate rejoin, combine with short token TTLs. Docs
• To end the session for everyone: use DeleteRoom to disconnect all participants and close the room. Docs
Would you like brief examples for browser unload handlers or mobile app lifecycle hooks?
Sources: Connecting to LiveKit | LiveKit docs | Managing participants | LiveKit docs | Managing rooms | LiveKit docsicy-salesclerk-19784
11/05/2025, 3:30 PMtall-airline-16756
11/05/2025, 3:32 PMicy-salesclerk-19784
11/05/2025, 3:33 PM