adorable-queen-16922
11/05/2025, 6:51 AMtall-airline-16756
11/05/2025, 6:51 AMtall-airline-16756
11/05/2025, 6:51 AMroom.disconnect().
Example:
import { Room } from 'livekit-client';
const room = new Room();
await room.connect(wsUrl, token);
// your app logic...
// cleanly leave the room (no stopTrack calls needed)
room.disconnect();
Notes:
• If you don’t call disconnect(), the server will remove the participant after ~15 seconds.
• More details: Connecting to LiveKit Sources: Connecting to LiveKit | LiveKit docs | Core Platform Architecture & Authentication | livekit/livekit_composite | D...adorable-queen-16922
11/05/2025, 6:53 AMtall-airline-16756
11/05/2025, 6:54 AMadorable-queen-16922
11/05/2025, 7:18 AM