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: unknown class>)
constructor(webSocketFactory: () -> <Error class: unknown class>)
actual constructor()
actual constructor()

Functions

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