File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/pages/[platform]/build-a-backend/data/subscribe-data Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -340,9 +340,9 @@ func createSubscription() {
340
340
341
341
</BlockSwitcher >
342
342
343
- ### Unsubscribing from updates
343
+ ## Unsubscribing from updates
344
344
345
- #### Async/Await
345
+ ### Async/Await
346
346
347
347
To unsubscribe from updates, you can call ` cancel() ` on the subscription.
348
348
@@ -353,7 +353,7 @@ func cancelSubscription() {
353
353
}
354
354
```
355
355
356
- #### Combine
356
+ ### Combine
357
357
358
358
Calling ` cancel() ` on the sequence will disconnect the subscription from the backend. Any downstream subscribers will also be cancelled.
359
359
@@ -537,7 +537,7 @@ Amplify.Hub.listen(
537
537
);
538
538
```
539
539
540
- #### SubscriptionStatus
540
+ ### SubscriptionStatus
541
541
542
542
- ** ` connected ` ** - Connected and working with no issues
543
543
- ** ` connecting ` ** - Attempting to connect (both initial connection and reconnection)
You can’t perform that action at this time.
0 commit comments