How can I manually trigger reconnection? #5305
Unanswered
VladimirMikulic
asked this question in
Q&A
Replies: 1 comment
-
Hi! On the client side: socket.disconnect().connect(); // disconnection then reconnection
// or
socket.io.engine.close(); // simulate a low-level disconnection On the server side: io.on("connection", (socket) => {
// socket.disconnect() would tell the client to skip reconnection
socket.conn.close();
}); |
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.
-
Is there a function like
socket.reconnect()
to manually trigger reconnection?Beta Was this translation helpful? Give feedback.
All reactions