Moderation may wish to disconnect or force-drop one or more participant(s) from the Session by using dropUser() method.

Method: static Future<void>dropUser(List<dynamic>clientIds)

Parameter:

  • {List} clientsIds-  Pass list of clientIds: Required. List of CientId to be disconnected.

Event Listeners:

  • onAckDropUser: To acknowledge that the user has been disconnected
EnxRtc.dropUser([clientIds]); // To drop clientIds from Session

EnxRtc.onAckDropUser=(Map<dynamic,dynamic> map) {
	// Moderators are notified with clientIds dropped
};