closeAllTransports method

Future<void> closeAllTransports()

Closes all transports

Implementation

Future<void> closeAllTransports() async {
  Iterable<String> keys = globalState.relays.keys.toList();
  try {
    await Future.wait(keys.map((url) => closeTransport(url)));
  } catch (e) {
    Logger.log.e(e);
  }
}