79606718

Date: 2025-05-05 10:05:11
Score: 1.5
Natty:
Report link
HttpClient(CIO) {

    install(WebSockets) {
        contentConverter = KotlinxWebsocketSerializationConverter(json)
        pingIntervalMillis = 15000
    }

    install(HttpRequestRetry) {
        retryOnServerErrors(maxRetries = 5)
        delayMillis {
            TODO("handle it here")
            5000
        }
    }
}.webSocket(<url>) { /* TODO */ }

https://ktor.io/docs/client-request-retry.html

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Динар Исламов