examples/livetext.rb in mqtt-0.0.3 vs examples/livetext.rb in mqtt-0.0.4

- old
+ new

@@ -1,11 +1,11 @@ #!/usr/bin/env ruby $:.unshift File.dirname(__FILE__)+'/../lib' -require 'mqtt' +require 'mqtt/client' -client = MQTT::Client.new('hadrian.aelius.com') +client = MQTT::Client.new('mqtt.example.com') client.connect do client.subscribe('livetext/#') loop do topic,message = client.get puts "#{topic}: #{message}" \ No newline at end of file