Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex authored Jul 22, 2017
1 parent aa7aaa6 commit a3b82f6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nodejshelper/server/server.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
var http = require('http').createServer(handler)
, config = require('./settings');

if (config.use_publish_notifications == true) {
const redis = require('redis');
const redisClient = redis.createClient(config.redis.port,config.redis.host,config.redis.options);
}

const redis = require('redis');
const redisClient = redis.createClient(config.redis.port,config.redis.host,config.redis.options);

var io = require(config.socketiopath).listen(http);

Expand Down Expand Up @@ -215,4 +214,4 @@ io.sockets.on('connection', function (socket) {
}
});

});
});

0 comments on commit a3b82f6

Please sign in to comment.