retryConnection method
Implementation
Future<void> retryConnection() async {
if (_state is! FatalError && _state is! Disconnected) {
throw StateError('Cannot retry when state is $_state');
}
SdkLogger.i('Manual retry initiated');
_reconnectAttempts = 0;
_updateQuality();
_shouldReconnect = true;
await connect();
}