Builder

Deprecated

The websocket implementation has moved to 'com.apollographql.apollo.network.websocket'. See https://go.apollo.dev/ak-v5-websockets for more details.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The incremental delivery protocol to use when using @defer and/or @stream.

Link copied to clipboard
fun WebSocketNetworkTransport.Builder.okHttpClient(okHttpClient: ERROR CLASS: Symbol not found for OkHttpClient): ERROR CLASS: Unresolved name: apply

Configures the DeprecatedWebSocketNetworkTransport to use the okHttpCallFactory for network requests.

Link copied to clipboard
Link copied to clipboard
fun reopenWhen(reopenWhen: suspend (Throwable, attempt: Long) -> Boolean?): WebSocketNetworkTransport.Builder

Configure the WebSocketNetworkTransport to reopen the websocket automatically when a network error happens

Link copied to clipboard
fun serverUrl(serverUrl: suspend () -> String?): WebSocketNetworkTransport.Builder

Configure the server URL.

Link copied to clipboard