From 0af3f62c8b91efe161a8593b067fea5d487969e8 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Tue, 19 Jun 2012 10:54:51 -0400 Subject: [PATCH] Updated README, finally pushed to npm --- README.md | 6 +++++- lib/kestrelClient.js | 5 +++++ package.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1b864ff..b2b6d87 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,12 @@ Node-Kestrel This module contains Kestrel client, producer and consumer classes. +This module is NOT a wrapper around a Memcached Client, this a wrapper around all of the available commands for Kestrel using the net library. + ## Installation -`npm install kestrel` +`npm install node-kestrel` + +Not to be mistaken with `npm install kestrel`, two different modules. ## Usage Check out the `examples` folder diff --git a/lib/kestrelClient.js b/lib/kestrelClient.js index ac689a7..5445def 100644 --- a/lib/kestrelClient.js +++ b/lib/kestrelClient.js @@ -20,6 +20,7 @@ var kestrel = function( options ){ } } + ee2.call(this); } util.inherits(kestrel,ee2); @@ -58,6 +59,10 @@ kestrel.prototype.connect = function(){ function _createConnection(port, host, self){ var connection = net.connect(port,host); + + connection.on('error', function(err){ + console.dir(err); + }); connection.on('data', function(data){ _handleData(data,self); self.emit('data', data); diff --git a/package.json b/package.json index 63d45b0..759d561 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "kestrel" + "name": "node-kestrel" , "version": "0.0.1" , "description": "Kestrel client module for NodeJS" , "homepage": "http://www.blangdon.com/"