Permalink
Browse files

added package.json

  • Loading branch information...
benlund committed Aug 15, 2010
1 parent 7b26eee commit e58232e7ef0e9ebaf0a6cb28def36387bdb7a602
Showing with 6 additions and 23 deletions.
  1. +1 −1 README
  2. +5 −0 package.json
  3. +0 −22 test/#connect.js#
View
2 README
@@ -1,7 +1,7 @@
Beanstalkd Client for Node.js
=============================
-Version: 0.2
+Version: 0.2.0
Example:
View
@@ -0,0 +1,5 @@
+{ "name": "beanstalk_client"
+, "version": "0.2.0"
+, "main": "lib/beanstalk_client"
+, "description": "client library for the beanstalkd message queue server"
+}
View
@@ -1,22 +0,0 @@
-var sys = require('sys');
-var client = require('../lib/beanstalk_client').Client;
-
-client.connect(null, function(err, conn) {
-
- sys.puts('success connecting');
- conn.use('test').addCallback(function() {
- conn.watch('test').addCallback(function() {
- conn.put(0, 0, 1, 'hiben').addCallback(function(job_id) {
- sys.puts('put job: ' + job_id);
-
- conn.reserve().addCallback(function(job_id, data) {
- sys.puts('got job: ' + job_id);
- sys.puts('job data: ' + data);
- conn.destroy(job_id);
- });
- });
- });
- });
-}).addErrback(function() {
- sys.puts('error connecting');
-});

0 comments on commit e58232e

Please sign in to comment.