OkHttpSocketConnector

class OkHttpSocketConnector(client: OkHttpClient = OkHttpClient(), userAgent: String? = null) : SocketConnector

Real sockets over OkHttp. No Origin header is sent (app sockets do not need one).

Constructors

Link copied to clipboard
constructor(client: OkHttpClient = OkHttpClient(), userAgent: String? = null)

Functions

Link copied to clipboard
open suspend override fun connect(url: String): SocketConnection

Opens a socket to url (ws:// or wss://).