-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider mechanism to dynamically change next retry for disconnected / suspended states #83
Comments
... or some other programmatic way of controlling retries, eg exposing an interface for initiating retries directly. |
|
well, quite. What I'm saying is that we could think of a But - would the events need to include anything not already included in the |
My preference would simply be that the use subscribes to the events they want to change the default behaviour for, and call a method such as |
Agree that the user can just subscribe to connection events. I'm not sure we even need an api to tell the client lib to reset the attempt timer -- could we not just have a |
Yes, null or zero values (where nulls are not supported) would work and keeps things simple with no change to the API, only docs & spec |
Zero values for |
@SimonWoolf when you are looking at other spec items, mind doing a PR for this too based on |
I suspect that the customer would like to leave the job of sleeping and waking to call |
What are you suggesting then @paddybyers? |
I don't have a concrete suggestion. The idea that the client returns/sets the delay and the library handles the timer might be preferable, for a customer that doesn't want to have to deal with those complications. The option of just setting the timeout to zero, and leaving the app to handle it completely, is the simpler API. I think if we propose the latter approach, which we seem to be settling on, then we should anticipate that possible pushback. It's possible also that there's an unstated expectation coming from experience with other mobile analytics libraries. |
➤ Automation for Jira commented: The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-2829 |
Instead of relying on the configured retry intervals, we should offer a way for developers to hook in and define the duration until the next retry.
┆Issue is synchronized with this Jira Task by Unito
The text was updated successfully, but these errors were encountered: