reconnectIfNeeded method
void
reconnectIfNeeded()
Attempts reconnection if policies allow it.
Evaluates all configured policies and initiates reconnection when conditions are met. Called automatically by the handler based on state changes.
Implementation
void reconnectIfNeeded() {
if (!_canBeReconnected()) return;
_client.connect();
}