Jdk11WebSocketClient

class Jdk11WebSocketClient(httpClient: HttpClient = HttpClient.newHttpClient(), configureWebSocket: WebSocket.Builder.() -> Unit = {}) : WebSocketClient

A WebSocketClient implementation using JDK11's async web socket API.

Constructors

Link copied to clipboard
fun Jdk11WebSocketClient(httpClient: HttpClient = HttpClient.newHttpClient(), configureWebSocket: WebSocket.Builder.() -> Unit = {})

Functions

Link copied to clipboard
open suspend override fun connect(url: String): WebSocketConnectionWithPingPong

Opens a web socket connection and suspends until the connection is OPEN.