doesRelaySupportNip method

bool doesRelaySupportNip(
  1. String url,
  2. int nip
)

does relay support given nip

Implementation

bool doesRelaySupportNip(String url, int nip) {
  RelayConnectivity? connectivity = globalState.relays[cleanRelayUrl(url)];
  return connectivity != null &&
      connectivity.relayInfo != null &&
      connectivity.relayInfo!.supportsNip(nip);
}