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

reconnect websocket? #21

Open
mschoch opened this issue Jun 11, 2024 · 0 comments
Open

reconnect websocket? #21

mschoch opened this issue Jun 11, 2024 · 0 comments

Comments

@mschoch
Copy link
Owner

mschoch commented Jun 11, 2024

I've noticed that if I restart the server or close the lid of the laptop on the client-side, the websocket connection within the react app will die.

For me it then takes a page refresh for the app to get the latest database synced.

It seems like we could probably have some sort of exponential back-off while trying to reconnect.

This would probably have to be done inside the connector, as it owns the websocket on the client-side. So, there might be some challenges organizing the code...

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

No branches or pull requests

1 participant