handleWebSocketConversation
fun TestApplicationEngine.handleWebSocketConversation(uri: String, setup: TestApplicationRequest.() -> Unit = {}, awaitCallback: Boolean = true, callback: suspend TestApplicationCall.(incoming: ReceiveChannel<Frame>, outgoing: SendChannel<Frame>) -> Unit): TestApplicationCall
Content copied to clipboard
Makes a test request that sets up a WebSocket session and invokes the callback function that handles conversation with the server