stop method
Stop real-time sync
Implementation
Future<void> stop() async {
_logger.info('Stopping real-time sync');
// Unsubscribe from all collections
for (final collection in _collections) {
_websocketService.unsubscribe(collection);
}
await _messageSubscription?.cancel();
await _stateSubscription?.cancel();
await _websocketService.disconnect();
}