Sha256: d860e0421d6781bc149c72df0c5d936f49209aafad36e6a0ee55c606e76f734c

Contents?: true

Size: 275 Bytes

Versions: 24

Compression:

Stored size: 275 Bytes

Contents

##
##TODO: This badly needs to be rewritten
##

require 'rubygems'
require 'dripdrop/agent'

agent = DripDrop::Agent.new(ZMQ::PUB,'tcp://127.0.0.1:2900',:connect)

loop do
  agent.send_message('test', :body => 'hello', :head => {:key => 'value'})
  puts "SEND"
  sleep 1
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
dripdrop-0.11.0-java example/agent_test.rb
dripdrop-0.11.0 example/agent_test.rb
dripdrop-0.10.0 example/agent_test.rb
dripdrop-0.10.0-java example/agent_test.rb
dripdrop-0.10.0.beta2 example/agent_test.rb
dripdrop-0.10.0.beta1 example/agent_test.rb
dripdrop-0.9.10 example/agent_test.rb
dripdrop-0.9.9 example/agent_test.rb
dripdrop-0.9.8 example/agent_test.rb
dripdrop-0.9.6 example/agent_test.rb
dripdrop-0.9.5 example/agent_test.rb
dripdrop-0.9.4 example/agent_test.rb
dripdrop-0.9.3 example/agent_test.rb
dripdrop-0.9.2 example/agent_test.rb
dripdrop-0.8.1 example/agent_test.rb
dripdrop-0.8.0 example/agent_test.rb
dripdrop-0.7.1 example/agent_test.rb
dripdrop-0.6.0 example/agent_test.rb
dripdrop-0.5.0 example/agent_test.rb
dripdrop-0.4.2 example/agent_test.rb