connect method

Future<void> connect()

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();
}