closeStreamOfLabel method

void closeStreamOfLabel(
  1. String label,
  2. List<String>? peerIds
)

Close a particular stream of remote peers @param data: { label: string; peerIds?: string[] } @param label: Label of the stream @param peerIds: PeerIds of the remote peers, if not provided, it will close the stream of all the remote peers

Implementation

void closeStreamOfLabel(String label, List<String>? peerIds) {
  if (!checkPermission(permissionTypeCheck: PermissionType.admin)) {
    return;
  }

  socket.publish(
    Request_Request.closeStreamOfLabel,
    {'label': label, 'peerIds': peerIds},
  );
}