Browse files

Removes obsolete websocket-server dependency

  • Loading branch information...
1 parent fcc6799 commit a398ac1dde6cf12bdb8bfea8f5145ad93b0c7790 @claudioc committed Nov 26, 2015
Showing with 8 additions and 5 deletions.
  1. +6 −3 bin/jecho
  2. +2 −2 package.json
View
9 bin/jecho
@@ -11,7 +11,7 @@ var http = require('http')
, program
, JechoClient = require('../lib/JechoClient').JechoClient
, Readliner = require('../lib/Readliner').Readliner
- , ConnectionServer = require('../lib/wswrapper').ConnectionServer;
+// , ConnectionServer = require('../lib/wswrapper').ConnectionServer;
String.prototype.padZero= function(len, c){
var s= '', c= c || '0', len= (len || 2)-this.length;
@@ -32,7 +32,7 @@ try {
process.exit(1);
}
-var version = "0.2.2";
+var version = "0.2.3";
program
.version(version)
@@ -123,7 +123,10 @@ function main() {
});
}
- var server = new ConnectionServer({httpServer: httpServer});
+ var WebSocketServer = require('ws').Server
+ , server = new WebSocketServer({ server: httpServer });
+
+ //var server = new ConnectionServer({httpServer: httpServer});
server.on('connection', function(conn) {
View
4 package.json
@@ -1,6 +1,6 @@
{
"name": "jecho",
- "version": "0.2.2",
+ "version": "0.2.3",
"description": "JavaScript remote web debugging tool",
"author": "Claudio Cicali <claudio.cicali@gmail.com>",
"main": "jecho.js",
@@ -15,7 +15,7 @@
"dependencies": {
"commander": ">=0.1.0",
"websocket": ">=0.1.0",
- "websocket-server": ">=0.1.0"
+ "ws": "^0.8.0"
},
"engine": "node >=0.8.0",
"licenses": [

0 comments on commit a398ac1

Please sign in to comment.