monitoring method

  1. @override
Stream<MonitoringResult> monitoring(
  1. List<Region> regions
)
override

Implementation

@override
Stream<MonitoringResult> monitoring(List<Region> regions) {
  final list = regions.map((region) => region.toJson).toList();
  final Stream<MonitoringResult> onMonitoring = _monitoringChannel
      .receiveBroadcastStream(list)
      .map((dynamic event) => MonitoringResult.from(event));
  return onMonitoring;
}