Jdk11WebSocketClient

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

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

Constructors

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

Properties

Link copied to clipboard
open override val supportsCustomHeaders: Boolean = true

Functions

Link copied to clipboard
open suspend override fun connect(url: String, protocols: List<String>, headers: Map<String, String>): WebSocketConnectionWithPingPong