kickPeer method

void kickPeer(
  1. String peerId
)

kick peer from room with respective peerId

Implementation

void kickPeer(String peerId) {
  if (!checkPermission(permissionTypeCheck: PermissionType.admin)) {
    return;
  }
  try {
    socket.publish(Request_Request.kickPeer, {'peerId': peerId});
  } catch (error) {
    logger.e("🔴 Error denying peer", error: error);
  }
}