BrowserWebSocketClient

Default WebSocket found in the browser. Not supported in Node.js environment.

Properties

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

Functions

Link copied to clipboard
open suspend override fun connect(url: String, protocols: List<String>, headers: Map<String, String>): WebSocketConnection
Link copied to clipboard
open override 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.