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)
Content copied to clipboard
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
Content copied to clipboard
Create raw ClientWebSocketSession: no ping-pong and other service messages are used.
Link copied to clipboard
Content copied to clipboard
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)
Content copied to clipboard
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)
Content copied to clipboard
Create secure raw ClientWebSocketSession: no ping-pong and other service messages are used.