From 11cb53057728bfe744e342f90c51ef6699c7a8e0 Mon Sep 17 00:00:00 2001 From: leeluolee <87399126@163.com> Date: Mon, 8 May 2017 12:50:14 +0800 Subject: [PATCH] fix socket.io deps error --- lib/connect-puer.js | 1 - package.json | 2 +- src/connect-puer.coffee | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/connect-puer.js b/lib/connect-puer.js index 9c472f5..7538ecb 100644 --- a/lib/connect-puer.js +++ b/lib/connect-puer.js @@ -53,7 +53,6 @@ }); helper.log("watcher on!!"); io = (require('socket.io')).listen(server); - io.set("log level", 1); sockets = []; watcher.on('change', function(path, stats) { var data, socket, _i, _len, _results; diff --git a/package.json b/package.json index a65a39b..f5fbd8a 100755 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "coffee-script": "1.4.x", "express": "3.0.x", "chokidar": "0.8.1", - "socket.io": "0.9.16", + "socket.io": "~1.7.4", "weinre": "^2.0.0-pre-I0Z7U9OV", "qrcode-npm": "0.0.3", "http-proxy": "~1.10.0" diff --git a/src/connect-puer.coffee b/src/connect-puer.coffee index 651209e..d143b0b 100644 --- a/src/connect-puer.coffee +++ b/src/connect-puer.coffee @@ -51,7 +51,7 @@ module.exports = (app, server, options) -> helper.log "watcher on!!" io = (require 'socket.io').listen server - io.set("log level", 1) + # io.set("log level", 1) # keep the connect socket instance sockets = []