example/ex20.rb in asir-0.2.0 vs example/ex20.rb in asir-1.0.1
- old
+ new
@@ -8,12 +8,12 @@
:encoder => ASIR::Coder::Marshal.new,
:one_way => true)
server_process do
zmq.prepare_server!
zmq.run_server!
- end; sleep 1
- UnsafeService.client.transport = t = zmq
- pr UnsafeService.client.do_it(":ok")
+ end
+ UnsafeService.asir.transport = t = zmq
+ pr UnsafeService.asir.do_it(":ok")
rescue ::Exception => err
$stderr.puts "### #{$$}: ERROR: #{err.inspect}\n #{err.backtrace * "\n "}"
raise
ensure
zmq.close rescue nil; sleep 1; server_kill