What happens to this when it can't connect to the ...
# ktor
j
What happens to this when it can't connect to the websocket? Does it throw an exeption or something?
Copy code
socket = http.webSocketSession(
                generateWebsocketURL(
                    config.encoding,
                    config.compression
                )
            ) { timeout { this.connectTimeoutMillis = 5000; this.socketTimeoutMillis = 2 * 60 * 1000 } }
Or should it do something? Because it just blocks the coroutine
and then does nothing
Any idea?
Even that just blocks everything and doesn't tell me that it cant connect:
Copy code
HttpClient() { install(WebSockets)
}.webSocketSession(
        "<wss://testabcde.com/ws>",
)