-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Does not reconnect if first connection failed #3
Comments
I wouldn't call init function recursively and I'd use one of the existing packages for exponential backoff retry management This means the "happy path" of the Then Also, I'd properly manage TS to avoid the If you wanna apply these fixes and send a PR, I can review it Otherwise, if you use this into a commercial project, please check out our sponsorship page to get issue prioritization: github.com/sponsors/dreamonkey/sponsorships?tier_id=135990 |
This is a quick example on how to implement an exponential backoff retry pattern: vuejs/apollo@b17817e |
i wanted to reuse reconnect function provided and supported by |
I suspect this should be handled by
@microsoft/signalr
package.But it does not even try to reconnect if
connection.start()
failed.is it ok to reuse "private" function from ConnectionHub object inside
createService -> init() -> catch { ... here ... }
something like this gcoda@980329e
The text was updated successfully, but these errors were encountered: