OptionalAttemptHow long one attempt may take before it counts as failed. A socket that never opens would otherwise leave the session reconnecting forever. Defaults to REALTIME_RESUMPTION_ATTEMPT_TIMEOUT_MS.
OptionalDeadlineThe longest margin the helper keeps before an announced connection end. When no resumable point has arrived by then, it reconnects with the last handle. The margin is a third of the notice, so a turn in progress gets the rest of it to finish, kept between REALTIME_RESUMPTION_MIN_DEADLINE_MARGIN_MS (what a reconnect needs) and this value. Defaults to REALTIME_RESUMPTION_DEADLINE_MARGIN_MS.
OptionalLogDiagnostic sink; defaults to no logging.
OptionalOnThe replacement connection is in use.
Every attempt failed. The driver surfaces its usual fatal error here; the helper never reconnects again after this.
OptionalOnA reconnect started. Drivers report this as 'connecting' so hosts can show "reconnecting".
Opens a replacement connection that resumes the session from handle, and makes it the
driver's current connection. Resolves once the new connection is in use; rejects on failure.
OptionalRetryDelay before each attempt, in milliseconds; the array length is the attempt count. Defaults to REALTIME_RESUMPTION_RETRY_DELAYS_MS.
Callbacks and tuning for RealtimeSessionResumption.