examples/echo_client.rb in pigato-0.2.0 vs examples/echo_client.rb in pigato-0.2.1
- old
+ new
@@ -2,10 +2,10 @@
require "rubygems"
require "#{File.dirname(__FILE__)}/../lib/pigato.rb"
#require "pigato"
-client = Pigato::Client.new('tcp://localhost:55555')
+client = Pigato::Client.new('tcp://localhost:55555', { :autostart => true })
requests = 1000
d1 = Time.now
requests.times do |i|
begin
client.request('echo', 'Hello world')