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