Permalink
Browse files

inítial import

  • Loading branch information...
0 parents commit 33f5b9e519a80134381b14e9151322736f3f0f34 andris9 committed Nov 22, 2011
Showing with 529 additions and 0 deletions.
  1. +20 −0 client.js
  2. +490 −0 gearman.js
  3. +19 −0 worker.js
@@ -0,0 +1,20 @@
+var Gearman = require("./gearman");
+
+var gearman = new Gearman("pangalink.net");
+
+var y = new Gearman("pangalink.net");
+var job = y.submitJob("reverse", "test");
+
+job.on("error", function(err){
+ console.log("ERROR: ", err.message || err);
+});
+
+job.on("data", function(chunk){
+ if(chunk){
+ console.log(chunk.toString());
+ }
+});
+
+job.on("end", function(){
+ console.log("Ready!");
+});
Oops, something went wrong.

0 comments on commit 33f5b9e

Please sign in to comment.