stop method

Future<void> stop()

Stop the client

Implementation

Future<void> stop() async {
  if (!_isStarted) return;

  _logger.info('Stopping S&F client');

  stopAutoRetrieval();
  await _presenceTracker?.dispose();
  await _incomingMessagesController.close();

  _isStarted = false;
}