Hi guys! Suppose we have such a websocket client: ...
# ktor
m
Hi guys! Suppose we have such a websocket client:
Copy code
<http://client.ws|client.ws>(port = 8081, path = "/") {
    pingIntervalMillis = 5_000
    timeoutMillis = 3_000

    while (true) {
        outgoing.send(Frame.Text("HI"))
        delay(500)
    }
}
First of all pinger will have 15sec timeout ( because we set timeout after interval, not before ). Also, the connection is terminated after a while for some reason. ( ~ 25 sec ) Could you please help?