fix: dont autoconnect for spiders, closes #12620

This commit is contained in:
Barış Soner Uşaklı
2024-06-06 10:39:31 -04:00
parent 56b5850a07
commit b6671d1672

View File

@@ -16,6 +16,7 @@ app = window.app || {};
reconnectionAttempts: config.maxReconnectionAttempts,
reconnectionDelay: config.reconnectionDelay,
transports: config.socketioTransports,
autoConnect: false,
path: config.relative_path + '/socket.io',
query: {
_csrf: config.csrf_token,
@@ -48,6 +49,7 @@ app = window.app || {};
hooks = _hooks;
if (parseInt(app.user.uid, 10) >= 0) {
addHandlers();
socket.connect();
}
});