publicAddress method

String publicAddress(
  1. String hubHost
)

The public address to print: scheme://host:port (or host:port for plain TCP), substituting hubHost when the Hub advertised none.

Implementation

String publicAddress(String hubHost) {
  final host = publicHost.isEmpty ? hubHost : publicHost;
  final s = scheme;
  return s == null ? '$host:$publicPort' : '$s://$host:$publicPort';
}