ReconnectConfig

fun ReconnectConfig(    maxAttempts: Int = DEFAULT_MAX_ATTEMPTS,     delayStrategy: RetryDelayStrategy = DEFAULT_DELAY_STRATEGY,     shouldReconnect: suspend (exception: Throwable, attempt: Int) -> Boolean = { _, _ -> true },     afterReconnect: suspend (WebSocketConnection) -> Unit = {})

Sources

Link copied to clipboard