JsWebSocketClient

A WebSocketClient adapting JavaScript WebSocket objects to WebSocketConnections.

This interface is not stable for inheritance by third parties, compatibility is not guaranteed.

Inheritors

Properties

Link copied to clipboard

Functions

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

Creates a WebSocket connection to the given url, using the provided headers in the handshake.