summaryrefslogtreecommitdiff
path: root/src/node/hooks/express/socketio.js
diff options
context:
space:
mode:
authorWikinaut <mail@tgries.de>2012-08-18 00:47:13 +0200
committerWikinaut <mail@tgries.de>2012-08-18 00:47:13 +0200
commite82588c3320f8a1329f4870d0194afd689e9ac74 (patch)
treed162a92c9b54b5eca45cdb1d4fdf8dda2c472123 /src/node/hooks/express/socketio.js
parentda30c8983a79ec1357225febbc5b97dbb3aa8fed (diff)
downloadetherpad-lite-e82588c3320f8a1329f4870d0194afd689e9ac74.zip
use socket.io with jsonp-polling. several browsers tested. fixes IE8 issues
Diffstat (limited to 'src/node/hooks/express/socketio.js')
-rw-r--r--src/node/hooks/express/socketio.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/node/hooks/express/socketio.js b/src/node/hooks/express/socketio.js
index 899eb985..4f780cb0 100644
--- a/src/node/hooks/express/socketio.js
+++ b/src/node/hooks/express/socketio.js
@@ -26,10 +26,13 @@ exports.expressCreateServer = function (hook_name, args, cb) {
});
});
-
- //this is only a workaround to ensure it works with all browers behind a proxy
- //we should remove this when the new socket.io version is more stable
- io.set('transports', ['htmlfile','xhr-polling']);
+ // the following has been successfully tested with the following browsers
+ // works also behind reverse proxy
+ // Firefox 14.0.1
+ // IE8 with Native XMLHTTP support
+ // IE8 without Native XMLHTTP support
+ // Chrome 21.0.1180.79
+ io.set('transports', ['jsonp-polling']);
var socketIOLogger = log4js.getLogger("socket.io");
io.set('logger', {