https://kotlinlang.org logo
Title
g

Gus

07/12/2020, 2:23 PM
Hello. How do you test a WebSocket client? It doesn't seem like I can use
handleWebSocketConversation
or anything related to WebSocket inside `addHandler`:
val ktorClient = HttpClient(MockEngine) {
                engine {
                    addHandler { request ->
                        handleWebSocketConversation {}
                    }
                }
            }
b

bbaldino

07/13/2020, 10:21 PM
If I'm understanding you correctly, it isn't currently supported: https://github.com/ktorio/ktor/issues/1413
👍 1