fixed socket.io

This commit is contained in:
David Baldwynn 2017-03-30 12:39:50 -07:00
parent 11c7890f3c
commit ef6ccaee99
No known key found for this signature in database
GPG key ID: 15D1C13202224A9B

View file

@ -10,7 +10,7 @@ var config = require('./config'),
module.exports = function (app, db) { module.exports = function (app, db) {
var server = http.createServer(app); var server = http.createServer(app);
var io = socketio(config.socketPort, { transports: ['websocket', 'polling'] }); var io = socketio({ transports: ['websocket', 'polling'] });
if(process.env.DISABLE_CLUSTER_MODE === "TRUE"){ if(process.env.DISABLE_CLUSTER_MODE === "TRUE"){
var redis = require('socket.io-redis'); var redis = require('socket.io-redis');