Hello, I’m creating a WebSocket client in ktor and...
# ktor
l
Hello, I’m creating a WebSocket client in ktor and I’m successfully streaming data from one path, however, I’ve not been successful in trying to configure the client to consume a second path’s stream for the same host. I’ve seen examples of configuring routing for a WebSocket server and am wondering if there’s a clearer way to configure mapping each path to its own handler
Copy code
val client = HttpClient {
    install(WebSockets)
}

client.webSocket(HttpMethod.Get, host, port, path) { … }
a
Could you please share a complete code example?