Reconnect Config
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