Sha256: c8db7eee85ae9166c3a354f9516b134ecf0813abd4642e83b9b66c26d7029b96

Contents?: true

Size: 290 Bytes

Versions: 3

Compression:

Stored size: 290 Bytes

Contents

#!/usr/bin/env ruby

require "rubygems"
require "#{File.dirname(__FILE__)}/../lib/pigato.rb"

client = PigatoClient.new('tcp://localhost:55555')
requests = 10
requests.times do |i|
  begin
    puts client.send('echo', 'Hello world')
  end
end

puts "#{requests} requests/replies processed"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pigato-0.1.3 examples/echo_client.rb
pigato-0.1.2 examples/echo_client.rb
pigato-0.1.1 examples/client.rb