Sha256: 8f83f182f61b3568d96da7e76a0b0ae618547ea3d152d46ef641dc9fb9f36681
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
require 'rubygems' require 'dripdrop/agent' agent = DripDrop::Agent.new('tcp://127.0.0.1:2900') loop do #Test is the message name, this is the first part of the 0MQ message, used for filtering #at the 0MQ sub socket level, :head is always a hash, :body is freeform #EVERYTHING must be serializable to BERT agent.send_message('test', :body => 'hello', :head => {:key => 'value'}) puts "SEND" sleep 1 end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dripdrop-0.0.3 | example/agent_test.rb |
dripdrop-0.0.2 | example/agent_test.rb |