Function useRemoteParticipants

  • The useRemoteParticipants hook returns all remote participants (without the local) of the current room.

    Remarks

    To optimize performance, you can use the updateOnlyOn property to decide on what RoomEvents the hook updates.

    Example

    const participants = useRemoteParticipants();
    <ParticipantLoop participants={participants}>
    <ParticipantName />
    </ParticipantLoop>

    Parameters

    Returns RemoteParticipant[]

Generated using TypeDoc