reportStatus method

Future<void> reportStatus()

Pushes a status snapshot to the Hub outside the heartbeat cadence.

Implementation

Future<void> reportStatus() async {
  final runtime = _runtime;
  if (runtime == null) return;
  runtime.notify(
    Operations.status,
    payload: StatusReport(
      nodeId: config.nodeId,
      status: await _status(),
    ).toJson(),
  );
}