DefaultWebSocketEngine

Creates a new DefaultWebSocketEngine from webSocketFactory

This constructor accepts a function so that OkHttp is initialized from a background thread

Constructors

Link copied to clipboard
constructor(webSocketFactory: NSWebSocketFactory)
actual constructor()
expect constructor()
constructor()
constructor(webSocketFactory: () -> ERROR CLASS: Symbol not found for WebSocket.Factory)
constructor(webSocketFactory: ERROR CLASS: Symbol not found for WebSocket.Factory)
actual constructor()
actual constructor()

Functions

Link copied to clipboard
actual open suspend override fun open(url: String, headers: List<HttpHeader>): WebSocketConnection

Open the websocket. Suspends until the handshake is done

expect open suspend override fun open(url: String, headers: List<HttpHeader>): WebSocketConnection

Open the websocket. Suspends until the handshake is done

actual open suspend override fun open(url: String, headers: List<HttpHeader>): WebSocketConnection

Open the websocket. Suspends until the handshake is done

actual open suspend override fun open(url: String, headers: List<HttpHeader>): WebSocketConnection

Open the websocket. Suspends until the handshake is done

actual open suspend override fun open(url: String, headers: List<HttpHeader>): WebSocketConnection

Open the websocket. Suspends until the handshake is done