Builder
Deprecated
The websocket implementation has moved to 'com.apollographql.apollo.network.websocket'. See https://go.apollo.dev/ak-v5-websockets for more details.
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
fun incrementalDeliveryProtocol(incrementalDeliveryProtocol: IncrementalDeliveryProtocol): WebSocketNetworkTransport.Builder
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): WebSocketNetworkTransport.Builder
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
Configure the server URL.
Link copied to clipboard