update to socket.io 1.0.x

This commit is contained in:
Matias Alejo Garcia 2014-06-04 16:45:33 -03:00
parent b249be4bdb
commit fc33317136
3 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -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 <port>

View File

@ -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",