Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update README.md

  • Loading branch information...
commit f9ac4b79cb9619d2b518bce4551941fd7fd2613a 1 parent d9cced5
@andris9 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -27,7 +27,7 @@ Where `hostname` defaults to `"localhost"` and `port` to `4730`
This doesn't actually create the connection yet. Connection is created when needed but you can force it with `gearman.connect()`
- var gearman = Gearman(hostname, port);
+ var gearman = new Gearman(hostname, port);
gearman.connect();
## Connection events
@@ -58,7 +58,7 @@ Jobs can be submitted with `gearman.submitJob(name, payload)` where `name` is th
Example:
- var gearman = Gearman(hostname, port);
+ var gearman = new Gearman(hostname, port);
var job = gearman.submitJob("reverse", "test string");
job.on("data", function(data){
@@ -85,7 +85,7 @@ Worker function `callback` gets two parameters - `payload` (received data as a B
Example:
- var gearman = Gearman(hostname, port);
+ var gearman = new Gearman(hostname, port);
gearman.registerWorker("reverse", function(payload, worker){
if(!payload){
Please sign in to comment.
Something went wrong with that request. Please try again.