WebSocketEngine
Creates a new WebSocketEngine from webSocketFactory
This factory function accepts a function so that OkHttp is initialized from a background thread
Creates a new WebSocketEngine 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