onRunning method

  1. @protected
  2. @override
void onRunning()
override

Runs each time this host becomes isRunning: on start, or on the first acceptConnection of a host that does not own its transport.

Implementation

@protected
@override
void onRunning() {
  _registrySnapshots ??=
      _serverRegistry.snapshots.listen(_broadcastRegistrySnapshot);
}