example/http.rb in dripdrop-0.9.6 vs example/http.rb in dripdrop-0.9.8
- old
+ new
@@ -12,10 +12,10 @@
EM::PeriodicTimer.new(1) do
client = http_client(addr)
msg = DripDrop::Message.new('http/status', :body => "Success #{i}")
client.send_message(msg) do |resp_msg|
- puts resp_msg.inspect
+ puts "RESP: #{resp_msg.inspect}"
end
end
#Keep zmqmachine from spinning around using up all our CPU by creating a socket
req = zmq_xreq('tcp://127.0.0.1:2091', :connect)