Skip to content

Commit

Permalink
docs: Correct file name discrepancies in tutorial documentation (#5740)…
Browse files Browse the repository at this point in the history
… (#5748)

Co-authored-by: Lydia Yuan <32387159+YuanRuQian@users.noreply.github.com>
  • Loading branch information
martinbonnin and YuanRuQian committed Mar 20, 2024
1 parent dcd27b9 commit 02bdc34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/tutorial/11-subscriptions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Scaffold(
Like for queries and mutations, the subscription will throw an error if the connection is lost or any other protocol error happens. To handle these situations, you can configure the client to retry the subscription with the `webSocketReopenWhen` function. Return `true` to retry, `false` to stop. To avoid retrying too often, you can use the `attempt` parameter to delay the retry:
```kotlin title="MainActivity.kt"
```kotlin title="Apollo.kt"
val apolloClient = ApolloClient.Builder()
(...)
.webSocketReopenWhen { throwable, attempt -> // highlight-line
Expand Down

0 comments on commit 02bdc34

Please sign in to comment.