examples/worker.rb in grenache-ruby-http-0.1.10 vs examples/worker.rb in grenache-ruby-http-0.2.0
- old
+ new
@@ -9,10 +9,10 @@
Signal.trap("INT") { EventMachine.stop }
Signal.trap("TERM") { EventMachine.stop }
c = Grenache::Http.new
- c.listen('test', 5005) do |msg|
- "hello #{msg.payload}"
+ c.listen('rpc_test', 5004) do |msg|
+ [nil,"hello #{msg.payload}"]
end
end