Package io.ktor.client.features.websocket

Functions

webSocketRaw
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.
webSocketRawSession
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.
ws
Link copied to clipboard
suspend fun HttpClient.ws(urlString: String, request: HttpRequestBuilder.() -> Unit = {}, block: suspend DefaultClientWebSocketSession.() -> Unit)
wsRaw
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.
wssRaw
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.