retryOnError

Configures the retryOnError for this com.apollographql.apollo.ApolloClient.

For an example, to retry all subscriptions by default:

val apolloClient = ApolloClient.Builder()
.retryOnError { it.operation is Subscription }
.serverUrl("...")
.build()

Parameters

retryOnError

a function called if ApolloRequest.retryOnError is null and returns a default value. Pass null to use the default { false }

See also


Configures the retryOnError for this com.apollographql.apollo.ApolloClient.

Parameters

retryOnError

whether to retry on error

See also