use socket.io default and ["polling", "websocket"]

This commit is contained in:
barisusakli
2014-12-25 14:13:54 -05:00
parent 1cbf5ddfe9
commit e0edb71a8a
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ var apiController = {};
apiController.getConfig = function(req, res, next) {
var config = {};
config.relative_path = nconf.get('relative_path');
config.socketioTransports = nconf.get('socket.io:transports') || ['websocket', 'polling'];
config.socketioTransports = nconf.get('socket.io:transports') || ['polling', 'websocket'];
config.websocketAddress = nconf.get('socket.io:address') || '';
config.version = pkg.version;
config.siteTitle = meta.config.title || meta.config.browserTitle || 'NodeBB';