diff --git a/app/controllers/socket.js b/app/controllers/socket.js index a4977af5..d6757292 100644 --- a/app/controllers/socket.js +++ b/app/controllers/socket.js @@ -7,7 +7,6 @@ var util = require('bitcore').util; module.exports.init = function(app, io_ext) { ios = io_ext; - ios.set('log level', 1); // reduce logging ios.sockets.on('connection', function(socket) { socket.on('subscribe', function(topic) { socket.join(topic); diff --git a/insight.js b/insight.js index 215118db..87c84a64 100755 --- a/insight.js +++ b/insight.js @@ -80,7 +80,7 @@ require('./config/routes')(expressApp); // socket.io var server = require('http').createServer(expressApp); -var ios = require('socket.io').listen(server); +var ios = require('socket.io')(server); require('./app/controllers/socket.js').init(expressApp, ios); //Start the app by listening on diff --git a/package.json b/package.json index e2fdc683..f68f04e9 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "express": "~3.4.7", "buffertools": "*", "should": "~2.1.1", - "socket.io": "~0.9.16", + "socket.io": "~1.0.4", "moment": "~2.5.0", "sinon": "~1.7.3", "xmlhttprequest": "~1.6.0",