recovery ability (parameter : maxDisconnectionDuration: 2 * 60 * 1000) Over 2 minute ,it still can send message to another client??? #5165
Unanswered
skyfall1970
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
-
i use official way:
https://socket.io/docs/v4/connection-state-recovery
i write a sample code :
https://codesandbox.io/p/devbox/github/socketio/chat-example/tree/cjs/step6?file=%2Findex.js%3A9%2C3-9%2C26
set parameter:
maxDisconnectionDuration: 2 * 60 * 1000 (2 minute)
skipMiddlewares: true
Test Case:
when disconnect the network : (1)elapsed time 30 second and i send message ,continue to (2) elapsed time 150 second(2 minute 30 second) and i send message
Recovery the network in elapsed time 3 minute , it still can send ( elapsed time 150 second) over time -maxDisconnectionDuration message to another client.
My question:
why does it over maxDisconnectionDuration time , it still can send message and client be received message???
Beta Was this translation helpful? Give feedback.
All reactions