closeTransport method

Future<void> closeTransport(
  1. dynamic url
)

Closes this url transport and removes

Implementation

Future<void> closeTransport(url) async {
  RelayConnectivity? connectivity = globalState.relays[url];
  if (connectivity != null && connectivity.relayTransport != null) {
    Logger.log.d("Disconnecting $url...");
    globalState.relays.remove(url);
    return connectivity.close();
  }
}