early-afternoon-97327
06/05/2025, 7:02 AMtall-airline-16756
06/05/2025, 7:02 AMtall-airline-16756
06/05/2025, 7:02 AMParticipantDisconnected event. For example: // This event is fired when a RemoteParticipant leaves after the local participant has joined
class ParticipantDisconnected(val room: Room, val participant: RemoteParticipant) : RoomEvent
• Swift SDK: Implement the RoomDelegate method: func room(_ room: Room, participantDidDisconnect participant: RemoteParticipant)
• Unity SDK: Use the `ParticipantDisconnectedDelegate`: public delegate void ParticipantDisconnectedDelegate(RemoteParticipant participant);
These events or delegates will automatically trigger when a participant disconnects, allowing your application to handle the situation accordingly.
Sources: RoomEvent | ParticipantDisconnected | room(_:participantDidDisconnect:) | Documentation | Delegate Room.ParticipantDisconnectedDelegate | LiveKit Unity SDK