Sha256: 185a2a713be679edb251521482b7b43460fd3ca66398f67d08319b110194ce54
Contents?: true
Size: 436 Bytes
Versions: 2
Compression:
Stored size: 436 Bytes
Contents
require 'rubygems' require 'dripdrop/agent' agent = DripDrop::Agent.new(ZMQ::PUB,'tcp://127.0.0.1:2900',:connect) 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.2.0 | example/agent_test.rb |
dripdrop-0.1.0 | example/agent_test.rb |