Replies: 1 comment
-
Hi! I'm not able to reproduce the issue you are experiencing: io.use((socket, next) => {
setTimeout(next, 10000);
});
io.on("connection", (socket) => {
console.log(`connect ${socket.id}`);
}); When the client reconnects before the given delay, the middleware is properly called again. Or am I missing something? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When a client reconnects while the server is waiting for an acknowledgement and the client, once reconnected, executes the old ack, it appears that the server isn't receiving it.
Is that an edge case that I have to take care of myself? or should socket.io be sorting that out and my code is the problem?
Beta Was this translation helpful? Give feedback.
All reactions