Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added package.json

  • Loading branch information...
commit e58232e7ef0e9ebaf0a6cb28def36387bdb7a602 1 parent 7b26eee
benlund authored August 15, 2010
2  README
... ...
@@ -1,7 +1,7 @@
1 1
 Beanstalkd Client for Node.js
2 2
 =============================
3 3
 
4  
-Version: 0.2
  4
+Version: 0.2.0
5 5
 
6 6
 Example:
7 7
 
5  package.json
... ...
@@ -0,0 +1,5 @@
  1
+{ "name": "beanstalk_client"
  2
+,  "version": "0.2.0"
  3
+,  "main": "lib/beanstalk_client"
  4
+,  "description": "client library for the beanstalkd message queue server"
  5
+}
22  test/#connect.js#
... ...
@@ -1,22 +0,0 @@
1  
-var sys = require('sys');
2  
-var client = require('../lib/beanstalk_client').Client;
3  
-
4  
-client.connect(null, function(err, conn) {
5  
-		
6  
-		sys.puts('success connecting');
7  
-		conn.use('test').addCallback(function() {
8  
-		conn.watch('test').addCallback(function() {
9  
-				  conn.put(0, 0, 1, 'hiben').addCallback(function(job_id) {
10  
-							 sys.puts('put job: ' + job_id);
11  
-
12  
-							 conn.reserve().addCallback(function(job_id, data) {
13  
-										     sys.puts('got job: ' + job_id);
14  
-										     sys.puts('job data: ' + data);
15  
-										     conn.destroy(job_id);
16  
-										   });
17  
-									   });
18  
-					       });
19  
-		  });
20  
-}).addErrback(function() {
21  
-		sys.puts('error connecting');
22  
-});

0 notes on commit e58232e

Please sign in to comment.
Something went wrong with that request. Please try again.