From 2482d6b5d26328c743cc91f5a286513b0238599e Mon Sep 17 00:00:00 2001 From: akshithg Date: Thu, 11 Aug 2016 16:12:56 +0530 Subject: [PATCH] fixes worker example in the readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4f9ef7..3230ec8 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ PIGATO aims to offer an high-performance, reliable, scalable and extensible service-oriented framework supporting multiple programming languages: Node.js/Io.js and Ruby. -* [Official PIGATO project page](http://prdn.github.io/pigato/) +* [Official PIGATO project page](http://prdn.github.io/pigato/) * [Node.js and io.js broker/client/worker](https://github.com/prdn/pigato) ## Installation @@ -47,10 +47,11 @@ client.request('echo', 'Hello world', { 'nocache' => 1 }) ``` worker = Pigato::Worker.new('tcp://localhost:55555', 'echo') +worker.start reply = nil loop do - request = worker.recv reply + request = worker.recv worker.reply request end ```