DefaultWebSocketEngine

constructor(webSocketFactory: NSWebSocketFactory)
actual constructor()
expect constructor()
constructor()
constructor(webSocketFactory: <Error class: unknown class>)

Creates a new DefaultWebSocketEngine from webSocketFactory

Prefer using the factory function accepting a function so that OkHttp is initialized from a background thread. See https://github.com/square/okhttp/pull/8248


constructor(webSocketFactory: () -> <Error class: unknown class>)
actual constructor()
actual constructor()