Determines if reconnection should be attempted.
@override bool shouldReconnect(int attemptNumber, int maxAttempts) { return attemptNumber <= maxAttempts; }