WebSocketEngine

interface WebSocketEngine

The low-level WebSocket API. Implement this interface to customize how WebSockets are handled

Functions

Link copied to clipboard
abstract suspend fun open(url: String, headers: List<HttpHeader> = emptyList()): WebSocketConnection
abstract suspend fun open(url: String, headers: Map<String, String> = emptyMap()): WebSocketConnection

Open the websocket. Suspends until the handshake is done

Inheritors

Link copied to clipboard