disconnect method
Stop the connection manager and disconnect.
Implementation
Future<void> disconnect() async {
_isAutoReconnecting = false;
_retryTimer?.cancel();
_stateSubscription?.cancel();
await _service.disconnect();
_stateController.add('disconnected');
}