getNextRetryDelay

Called after a disconnect is detected, and between each reconnect attempt.

Note: To prevent infinitely retrying, there is a hard cap of 30 retries, regardless of policy.

Return

The Duration to delay before the next reconnect attempt, or null to cancel reconnections.