add socketTransportProtocols parameter

This commit is contained in:
Wikinaut 2012-12-02 18:28:28 +01:00
parent e9e4d65ad4
commit 8b044254cc
3 changed files with 17 additions and 2 deletions

View file

@ -36,10 +36,10 @@ exports.expressCreateServer = function (hook_name, args, cb) {
});
});
// there shouldn#t be a browser that isn't compatible to all
// there shouldn't be a browser that isn't compatible to all
// transports in this list at once
// e.g. XHR is disabled in IE by default, so in IE it should use jsonp-polling
io.set('transports', ['xhr-polling', 'jsonp-polling', 'htmlfile']);
io.set('transports', settings.socketTransportProtocols );
var socketIOLogger = log4js.getLogger("socket.io");
io.set('logger', {