fixed socket.io
This commit is contained in:
parent
11c7890f3c
commit
ef6ccaee99
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue