OkHttpSocketConnection
class OkHttpSocketConnection(clientOptions: HttpClientOptions, scope: CoroutineScope) : SocketConnection
Functions
Link copied to clipboard
Connect to url. If there is an existing connection it should be automatically disconnected. After a connection is initialized the state should be updated until disconnect is called or the connection is closed by other means (server closed, network issues, new connect call etc.).
Link copied to clipboard
Disconnect the WebSocket. Will do nothing when there is no connection.