ktor-server-test-host / io.ktor.server.testing / TestApplicationEngine / handleWebSocketConversation

handleWebSocketConversation

fun handleWebSocketConversation(uri: String, setup: TestApplicationRequest.() -> Unit = {}, callback: suspend TestApplicationCall.(incoming: ReceiveChannel<Frame>, outgoing: SendChannel<Frame>) -> Unit): TestApplicationCall

Make a test request that setup a websocket session and invoke callback function that does conversation with server