mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
attempt at fixing #1323
This commit is contained in:
@@ -28,11 +28,17 @@ var socket,
|
||||
socket.socket.connect();
|
||||
}, 200);
|
||||
} else {
|
||||
socket = io.connect('', {
|
||||
var ioParams = {
|
||||
'max reconnection attempts': config.maxReconnectionAttempts,
|
||||
'reconnection delay': config.reconnectionDelay,
|
||||
resource: RELATIVE_PATH.length ? RELATIVE_PATH.slice(1) + '/socket.io' : 'socket.io'
|
||||
});
|
||||
};
|
||||
|
||||
if (utils.isAndroidBrowser) {
|
||||
ioParams.transports = ['xhr-polling'];
|
||||
}
|
||||
|
||||
socket = io.connect('', ioParams);
|
||||
|
||||
var reconnecting = false,
|
||||
reconnectEl, reconnectTimer;
|
||||
|
||||
Reference in New Issue
Block a user