Remove Participant - Javascript
Remove participant allows removing participant while session is on-going. This can be helpful when moderation in particular meeting is required.
const onPress = () => {
// Remove participant from active session
// This will emit an event called "onParticipantLeft" to that particular participant
meeting?.remove();
};
Events
meeting-left - Removing participant will trigger meeting-left
event.
meeting.on("participant-left", (participant) => {
// Triggers when a participant is removed or leaves the meeting.
});
Got a Question? Ask us on discord