// lib/remote/collection_source_remote_ws_ext.dart

import 'package:aves/model/source/collection_source.dart';
import 'remote_ws_client.dart';
import 'remote_services.dart'; // dove tieni l'istanza globale del WS client

extension CollectionSourceRemoteWsExt on CollectionSource {
  RemoteWsClient? get remoteWsClient => RemoteServices.wsClient;

  // ⭐ aggiungi questo
  set remoteWsClient(RemoteWsClient? client) {
    RemoteServices.wsClient = client;
  }
}
