attempt at fixing #1323

This commit is contained in:
psychobunny
2014-04-08 17:35:23 -04:00
parent d5baaacb72
commit 8432d8827e

View File

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