How to implement graceful shutdown of server with automatic client reconnection #5030
Unanswered
giovanni-bertoncelli
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I was wondering if there is any way to implement a graceful shutdown of socket.io and at the same time guarantee the client the chance to retry automatically (without any client custom implementation) the reconnection.
My use case is:
reconnect: true
optionI'd like to know if there is any way to implement this, ideally also with the Connection Recovery feature.
What I've already tried
io.close()
method (or theio.local.disconnectSockets()
one), there is no way to specify whenever the clients that receive the disconnection event should retry to reconnect (even if the transport is closed)transport close
disconnect reason, that is actually fatal.Beta Was this translation helpful? Give feedback.
All reactions