mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #9129, event is fired on socket.io
This commit is contained in:
@@ -44,7 +44,7 @@ socket = window.socket;
|
||||
|
||||
socket.on('disconnect', onDisconnect);
|
||||
|
||||
socket.on('reconnect_failed', function () {
|
||||
socket.io.on('reconnect_failed', function () {
|
||||
// Wait ten times the reconnection delay and then start over
|
||||
setTimeout(socket.connect.bind(socket), parseInt(config.reconnectionDelay, 10) * 10);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user