examples/worker.rb in grenache-ruby-ws-0.1.0 vs examples/worker.rb in grenache-ruby-ws-0.1.3
- old
+ new
@@ -8,10 +8,10 @@
Signal.trap("INT") { EventMachine.stop }
Signal.trap("TERM") { EventMachine.stop }
c = Grenache::Ws.new
- c.listen('test',5004) do |ws,msg|
- ws.send Oj.dump("hello #{msg.data}")
+ c.listen('test',5004) do |req|
+ "hello #{req.payload}"
end
end