interface Factory
abstract fun newWebSocket(request: Request, listener: WebSocketListener): WebSocket
Creates a new web socket and immediately returns it. Creating a web socket initiates an
asynchronous process to connect the socket. Once that succeeds or fails, |
open class OkHttpClient : Cloneable, Call.Factory, WebSocket.Factory
Factory for calls, which can be used to send HTTP requests and read their responses. |