ktor-client-cio / io.ktor.client.features.websocket / io.ktor.client.HttpClient / wssRaw

wssRaw

suspend fun HttpClient.wssRaw(method: HttpMethod = HttpMethod.Get, host: String = "localhost", port: Int = DEFAULT_PORT, path: String = "/", request: HttpRequestBuilder.() -> Unit = {}, block: suspend ClientWebSocketSession.() -> Unit): Unit

Create secure raw ClientWebSocketSession: no ping-pong and other service messages are used.