The retry
helper is used to retry a subscription if it throws an error:
→ Read more about retrying real-time subscriptions
Options
The function accepts a second argument with options:
bypass
The bypass
option allows you to conditionally ignore the retry logic and just run the subscription:
pattern
The pattern
option allows you to specify a custom retry pattern:
When the pattern is exhausted, the subscription will fail with the last error.