Builder
Constructors
Functions
Link copied to clipboard
fun addHeader(name: String, value: String): WebSocketNetworkTransport.Builder
Content copied to clipboard
Link copied to clipboard
fun addHeaders(headers: List<HttpHeader>): WebSocketNetworkTransport.Builder
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun headers(headers: List<HttpHeader>): WebSocketNetworkTransport.Builder
Content copied to clipboard
Link copied to clipboard
fun idleTimeoutMillis(idleTimeoutMillis: Long): WebSocketNetworkTransport.Builder
Content copied to clipboard
Link copied to clipboard
fun protocol(protocolFactory: WsProtocol.Factory): WebSocketNetworkTransport.Builder
Content copied to clipboard
Link copied to clipboard
Content copied to clipboard
Link copied to clipboard
fun reopenWhen(reopenWhen: suspend (Throwable, attempt: Long) -> Boolean?): WebSocketNetworkTransport.Builder
Content copied to clipboard
Configure the WebSocketNetworkTransport to reopen the websocket automatically when a network error happens
Link copied to clipboard
fun serverUrl(serverUrl: suspend () -> String?): WebSocketNetworkTransport.Builder
Content copied to clipboard
Configure the server URL dynamically.
Link copied to clipboard
fun webSocketEngine(webSocketEngine: WebSocketEngine): WebSocketNetworkTransport.Builder
Content copied to clipboard
Extensions
Link copied to clipboard
fun WebSocketNetworkTransport.Builder.okHttpClient(okHttpClient: OkHttpClient): WebSocketNetworkTransport.Builder
Content copied to clipboard
Configures the WebSocketNetworkTransport to use the okHttpCallFactory for network requests.