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
Socket recovery works only once #4880
Labels
Comments
Hi! I was not able to reproduce, could you please check this example? Is there anything in the debug logs ( |
darrachequesne
added
needs investigation
and removed
to triage
Waiting to be triaged by a member of the team
labels
Nov 27, 2023
After further investigation, I realize that it is recovering, but not always. Just can't figure it out in which circumstances is not able to recover. |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have multiplayer game/chat site where users are sometimes disconnected due to bad internet connection. With new socket.io now I use opton for socket recovery. I have created a button on page to deliberately close client's connection to socket. When I did it first time, socket was recovered and everything was fine. After second attempt to disconnect, socket is not recovered
To Reproduce
Please fill the following code example:
Socket.IO server version:
4.7.2
Server
MyAppHttp.js (simplified)
main.js (simplified)
Socket.IO client version:
4.7.2
Client
(simplified)
Expected behavior
I expected to recover again. But no, it is not recovering, rather it is giving new socket id after second disconnection.
Platform:
The text was updated successfully, but these errors were encountered: