closeTransport method
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.relayTransport!
.close()
.timeout(const Duration(seconds: 3), onTimeout: () {
Logger.log.w("timeout while trying to close socket $url");
});
}
}