Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client = Client.new(JID.new("..."))
- client.connect
- client.auth("...")
- pres = Presence.new
- pres.priority=5
- client.send(pres)
- puts "I'm online!"
- pubnode_news = PubSub::NodeHelper.new(client,"engineyard.com",pubsubnode)
- pubnode_news.add_event_callback { |event|
- event.items.each_element("item") { |item|
- puts item.to_s
- }
Add Comment
Please, Sign In to add comment