Sha256: b6b50b6cf26bb322eacea171f71be73531558de0718d7514dc05cdb4c0756eed

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 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('test', 5004) do |msg|
    "hello #{msg.payload}"
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grenache-ruby-http-0.1.8 examples/worker.rb
grenache-ruby-http-0.1.7 examples/worker.rb
grenache-ruby-http-0.1.6 examples/worker.rb
grenache-ruby-http-0.1.5 examples/worker.rb
grenache-ruby-http-0.1.4 examples/worker.rb