Skip to content

Commit

Permalink
#584 fixed issue with secureOnly=false
Browse files Browse the repository at this point in the history
  • Loading branch information
itayw committed Aug 18, 2014
1 parent 532a22e commit 79ca4eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/webserver/index.js
Expand Up @@ -334,10 +334,10 @@ webserver.start = function (options, callback) {
});
}

joola = require('socket.io')(self.http, { log: false });
joola.adapter(RedisStore({key: 'clear', pubClient: pub, subClient: sub}));
joola.connectCounter = 0;
joola.sockets.on('connection', handleSocketIOConnection);
joola.io = require('socket.io')(self.http, { log: false });
joola.io.adapter(RedisStore({key: 'clear', pubClient: pub, subClient: sub}));
joola.io.connectCounter = 0;
joola.io.sockets.on('connection', handleSocketIOConnection);

return callback(null, self.http);
}).on('connection', function (socket) {
Expand Down Expand Up @@ -430,7 +430,7 @@ webserver.start = function (options, callback) {
joola.logger.trace('Redis Connect on SIO-subscriber.');
});

redisPass = joola.config.get('store:websocket:https:redis:pass');
var redisPass = joola.config.get('store:websocket:https:redis:pass');
if (redisPass) {
securePub.auth(redisPass, function (err) {
if (err)
Expand Down

0 comments on commit 79ca4eb

Please sign in to comment.