bitter-appointment-81509
06/06/2025, 2:08 PMtall-airline-16756
06/06/2025, 2:08 PMtall-airline-16756
06/06/2025, 2:09 PMnpm install livekit-client @livekit/components-react @livekit/components-styles --save
2. Create and connect to a room: `const room = new Room();
await room.connect(wsUrl, token);`Where:
3. Once connected, each participant can publish their audio tracks and subscribe to other participants' tracks. The Room object will contain:
◦ localParticipant
- representing the current user
◦ remoteParticipants
- an array of other participants in the room
1. When participants join the same room with proper permissions, they can automatically exchange audio tracks, creating bidirectional audio communication.
2. To disconnect, call Room.disconnect()
to leave the room.
If you need further assistance, feel free to ask!
Sources: Connecting to LiveKit | LiveKit Docs