connectedRelays property

List<RelayConnectivity> get connectedRelays

Returns a list of fully connected relays, excluding connecting ones. DO NOT USE THIS FOR CHECKING A SINGLE RELAY, use isRelayConnected INSTEAD

Implementation

List<RelayConnectivity> get connectedRelays => globalState.relays.values
    .where((relay) => isRelayConnected(relay.url))
    .toList();