From 8432d8827e203c54581829f5ebc25be14266b4c3 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 8 Apr 2014 17:35:23 -0400 Subject: [PATCH] attempt at fixing #1323 --- public/src/app.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/public/src/app.js b/public/src/app.js index acd6b4fd35..681578d01b 100644 --- a/public/src/app.js +++ b/public/src/app.js @@ -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;