Sha256: 66ba087a1b14fe25e83bc39e56d6278d34fd84e5ec7646ecb152e9a64b430e3d

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

require_relative '../lib/grenache-ruby-http.rb'

Grenache::Http.configure do |conf|
   conf.grape_address = "http://127.0.0.1:40002/"
end

EM.run do

  Signal.trap("INT")  { EventMachine.stop }
  Signal.trap("TERM") { EventMachine.stop }

  c = Grenache::Http.new

  c.listen('rpc_test', 5004) do |msg|
   [nil,"hello #{msg.payload}"]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
grenache-ruby-http-0.2.0 examples/worker.rb