getRelayInfo method

Future<RelayInfo?> getRelayInfo(
  1. String url
)

fetches relay info todo: refactor to use http injector and decouple data from fetching

Implementation

Future<RelayInfo?> getRelayInfo(String url) async {
  if (globalState.relays[url] != null) {
    return await RelayInfo.get(url);
  }
  return null;
}