The EnxRoom.dropUser()
method allows the Moderator to disconnect / force-drop one or more participant(s) from the Session.
Class: EnxRoom
Method: public void
dropUser(List<String> clientIds)
Parameter:
clientIds
– Required. List of Client IDs to be disconnected.
Callbacks:
onAckDropUser -
Acknowledgment to the Moderator when the user is disconnected.onRoomDisconnected -
Notification to the affected user with the reason to be disconnected from the Room.
room.dropUser(list); // Moderator is acknowledged that user has been dropped public void onAckDropUser(JSONObject jsonObject) { // Handle JSONObject }
Error Codes & Exceptions
Code | Description |
---|---|
5116 | Unauthorized Access. When a user with participant role invokes dropUser() |