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

fix retry logic #237

Closed
wants to merge 1 commit into from
Closed

fix retry logic #237

wants to merge 1 commit into from

Conversation

alex-hofsteede
Copy link
Contributor

The autoconnect was attempting to start a retry cycle every time a connection was closed/rejected.

The correct way is to call open only once with the number of retries you want. It will take care of retrying that many times until you are connected.

The only other time we initiate open (and another reconnect cycle) is when we were fully connected to the AB test designer (sending messages etc.) and got disconnected.

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.

1 participant