Sha256: 129f9302922a5fd3a901b5f9e2bd0ca003d655b57cd11cf6de99fd819ce82c92
Contents?: true
Size: 263 Bytes
Versions: 1
Compression:
Stored size: 263 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.dirname(__FILE__)+'/../lib' require 'mqtt' client = MQTT::Client.new('hadrian.aelius.com') client.connect do client.subscribe('livetext/#') loop do topic,message = client.get puts "#{topic}: #{message}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mqtt-0.0.3 | examples/livetext.rb |