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