Package io.ktor.client.features.websocket

Functions

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

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

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

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

Link copied to clipboard
suspend fun HttpClient.ws(urlString: String, request: HttpRequestBuilder.() -> Unit = {}, block: suspend DefaultClientWebSocketSession.() -> Unit)
Link copied to clipboard
suspend fun HttpClient.wsRaw(method: HttpMethod = HttpMethod.Get, host: String = "localhost", port: Int = DEFAULT_PORT, path: String = "/", request: HttpRequestBuilder.() -> Unit = {}, block: suspend ClientWebSocketSession.() -> Unit)

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

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

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