retryOnError
Configures the retryOnError default if ApolloRequest.retryOnError is not set.
For an example, to retry all subscriptions by default:
val apolloClient = ApolloClient.Builder()
.retryOnError { it.operation is Subscription }
.serverUrl("...")
.build()
Content copied to clipboard
Parameters
retryOnError
a function called if ApolloRequest.retryOnError is null
and returns a default value. Pass null
to use the default { false }