-
Notifications
You must be signed in to change notification settings - Fork 13
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
Major refactory with re-connection support #13
base: master
Are you sure you want to change the base?
Conversation
Hello ! Thanks for sharing your patch it's really appreciated!
This is an interesting issue, I'd love to find a way to reproduce and unit test this against the signalhubws library. Did you found a way to reproduce this programmatically ?
I'm not sure how using a new module fixes the issue and I wish we could've fixed this without this new dependency. Also you changed @RangerMauve @G-Ray do you guys have an opinion about this? Did you encounter the same issue? |
Regarding Sockette is pretty small so if it brings reconnection logic, that could be useful. It's unit tests kind of suck though. 😅 |
Something that I don't like from our version is that we have to remove the possibility of setting by the user the WebSocketClass because sockette only use the global one, so if you are in nodejs we set the ws module into the global.WebSocket but that is something that we can change it if just take the reconnection idea of sockette.
Yes, I think having tests about this is necessary but the errors happens some times 🤦♂️ so it's complicated haha. Prev condition: Browser with a ws socket connection established.
|
This is blocking to me.
This should be testable. I'm going to try to work on testing it if I find the time.
We should try to use event sourcing for this it's way more appropriated then using websocket haha. Anyway it's a debate for another day. |
Hi @soyuka ! how are you?
First of all, thanks for you work on this module it was really necessary and we have been using it for the last months.
We start having different issues of re-connection problems + some crash trying to send new messages on closed sockets. We try to fix it but at the end we did a refactor of the code and we add sockette for the reconnection problem.
I don't know if our work can help you but we just want to share it with you in a PR so you can check it.