Skip to content
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

configuration for retry #26 #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tolgaerdonmez
Copy link

For #26

I've added a retry configuration, I can modify, if you'll say so. just have a look and let's merge this.

@dolbin-prime
Copy link

Any progress? 🤔

I think this should be applied. I cannot control retrying connection, as it gets done unconditionally! 😥

@tolgaerdonmez
Copy link
Author

It's been a long time, I'll take a look and see what hapenned.

@pratikbaid3
Copy link
Owner

@tolgaerdonmez @dolbin-prime sorry for the delay. I'll get this PR reviewed and merged this weekend.

);
});
if (config.infinite || (config.tryCount ?? 0) > 0) {
Future.delayed(Duration(seconds: 5), () {
Copy link

@mjohlke mjohlke Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to hint to the html spec where they list a retry event which is meant to control the reconnection time in milliseconds.

Adding a field int reconnectTime to RetryConfiguration and use this instead of the static 5s for the timer might be a good starting point. What I am not sure about is if these retry-events should set reconnectTime automatically or if this should be up to the programmer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants