attempt at fixing #1323

v1.18.x
psychobunny 11 years ago
parent d5baaacb72
commit 8432d8827e

@ -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;

Loading…
Cancel
Save