closeAllConnectionsForRelay method

Future<void> closeAllConnectionsForRelay(
  1. String relayUrl
)

Close all connections for a relay.

Implementation

Future<void> closeAllConnectionsForRelay(String relayUrl) async {
  final connections = _connectionPools[relayUrl] ?? [];
  // Future: Add WebSocket close logic if needed
  connections.clear();
  _connectionPools[relayUrl] = [];
  _availableConnections[relayUrl] = [];
  logger.log('All connections closed for relay: $relayUrl');
}