From: Zablon Ochomo Date: 2008-01-28T16:04:31+09:00 Subject: Re: XMPP client with Ruby The code below is working with the xmpp4r form http://home.gna.org/xmpp4r/ require 'XMPP4R' begin # Connect to the server and set presence to available for chat. jid = Jabber::JID.new('myjid@xmppserver/Resource') client = Jabber::Client.new(jid, false) client.connect client.auth('passwd') client.send(Jabber::Presence.new.set_show(:chat).set_status('Ruby!')) # Send an Instant Message. body = 'Hi XMPP' to_jid = Jabber::JID.new('tojid@xmppserver') message = Jabber::Message::new(to_jid, body).set_type(:normal).set_id('1') client.send(message) end question: how do I receive messages, since I can only send? --- ochomo -- Posted via http://www.ruby-forum.com/.