disconnectAll method

Future<void> disconnectAll()

FR-CONN-005

Implementation

Future<void> disconnectAll() async {
  _logger.debug('Disconnecting all', {'count': _connections.length});
  for (final info in _connections.values) {
    try {
      info.client?.disconnect();
    } catch (e) {
      _logger.warn('Disconnect error',
          {'serverId': info.serverId}, e);
    }
  }
  _connections.clear();
  notifyListeners();
}