ReconnectionOptions

class ReconnectionOptions(val initialReconnectionDelay: Duration = 1.seconds, val maxReconnectionDelay: Duration = 30.seconds, val reconnectionDelayMultiplier: Double = 1.5, val maxRetries: Int = 2)(source)

Options for controlling SSE reconnection behavior.

Constructors

Link copied to clipboard
constructor(initialReconnectionDelay: Duration = 1.seconds, maxReconnectionDelay: Duration = 30.seconds, reconnectionDelayMultiplier: Double = 1.5, maxRetries: Int = 2)

Properties

Link copied to clipboard

The initial delay before the first reconnection attempt.

Link copied to clipboard

The maximum delay between reconnection attempts.

Link copied to clipboard

The maximum number of reconnection attempts per disconnect.

Link copied to clipboard

The factor by which the delay grows on each attempt.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String