useParticipant(params): Object | null
If no participant is found for the given session_id, returns null.
useParticipant can also be used to set up optional callbacks for participant-left and participant-updated events.
Parameters
A unique identifier for the participant
Callback for the
participant-left eventCallback for the
participant-updated eventReturn value
Returns anObject | null containing detailed information about the participant. See participant properties. If no participant is found for a given session_id, useParticipant returns null.