WebSocketEngine

interface WebSocketEngine : Closeable

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

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
abstract fun newWebSocket(url: String, headers: List<HttpHeader> = emptyList(), listener: WebSocketListener): WebSocket

Creates a new WebSocket.