Sha256: 33eaabf0f05770f94e8d7217c03650a60bb0ba11eb41389632b7e0ccdb0d67a8

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

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

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

EM.run do
  client = Grenache::Ws.new
  10.times do |n|
    client.request("rpc_test","world #{n}") do |err, msg|
      if err
        puts "error: #{err}"
      else
        puts "response: #{msg}"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grenache-ruby-ws-0.2.13 examples/client.rb
grenache-ruby-ws-0.2.12 examples/client.rb