Reconnect Config
data class ReconnectConfig( val maxAttempts: Int = DEFAULT_MAX_ATTEMPTS, val delayStrategy: RetryDelayStrategy = DEFAULT_DELAY_STRATEGY, val shouldReconnect: suspend (exception: Exception, attempt: Int) -> Boolean = { _, _ -> true }, val afterReconnect: suspend (WebSocketConnection) -> Unit = {})
Content copied to clipboard
Configuration for web socket reconnections.
Constructors
Link copied to clipboard
fun ReconnectConfig( maxAttempts: Int = DEFAULT_MAX_ATTEMPTS, delayStrategy: RetryDelayStrategy = DEFAULT_DELAY_STRATEGY, shouldReconnect: suspend (exception: Exception, attempt: Int) -> Boolean = { _, _ -> true }, afterReconnect: suspend (WebSocketConnection) -> Unit = {})
Content copied to clipboard
Properties
Link copied to clipboard
val shouldReconnect: suspend (exception: Exception, attempt: Int) -> Boolean
Content copied to clipboard