connect method
Start the connection manager. It will attempt to connect and automatically reconnect if the connection drops.
Implementation
Future<void> connect() async {
_isAutoReconnecting = true;
_retryCount = 0;
_startMonitoring();
await _attemptConnection();
}