AuthenticatedWebSocketClient
internal class AuthenticatedWebSocketClient(engine: <Error class: unknown class>, bearerAuthProvider: <Error class: unknown class>, serverConfigDTO: <Error class: unknown class>, kaliumLogger: <Error class: unknown class>, webSocketSessionProvider: (<Error class: unknown class>, String) -> <Error class: unknown class>? = null)
HttpClient with WebSocket (ws or wss) capabilities. It's Authenticated, and will use the provided SessionManager to fill necessary Authentication headers, and refresh tokens as they expire.
Constructors
Link copied to clipboard
constructor(engine: <Error class: unknown class>, bearerAuthProvider: <Error class: unknown class>, serverConfigDTO: <Error class: unknown class>, kaliumLogger: <Error class: unknown class>, webSocketSessionProvider: (<Error class: unknown class>, String) -> <Error class: unknown class>? = null)
Functions
Link copied to clipboard
Creates a disposable HttpClient for a single use. Once the websocket is disconnected it's okay to use a new HttpClient, as the old one can be dead.
Link copied to clipboard
suspend fun createWebSocketSession(clientId: String, block: <Error class: unknown class>.() -> Unit): <Error class: unknown class>