Moderator may wish to disconnect or force-drop one or more participant(s) from the Session by using window.EnxRtc.dropUser()
method.
Method: dropUser( clientID )
Parameters:
@param {Array} clientID -
An array of Client Ids to be disconnected.
Event Listeners:
onAckDropUser -
To notify the Moderator that user(s) has been disconnectedonRoomDisConnected
– To notify the participant that he has been disconnected from the room along with the reason
// To disconnect the user from room Var array = [c1,c2]; window.EnxRtc.dropUser(array); // Add Event Listeners // Moderator is acknowledged that user has been dropped. window.EnxRtc.addEventListner("onAckDropUser", function console.log(JSON.stringify(data.data)); }); (data) { // Participants are notified that he is disconnected from the room with reason window.EnxRtc.addEventListner("onRoomDisConnected", function (data) { console.log(JSON.stringify(data.data)); });