From: brabuhr@... Date: 2008-01-29T00:45:39+09:00 Subject: Re: XMPP client with Ruby On Jan 28, 2008 2:04 AM, Zablon Ochomo wrote: > The code below is working with the xmpp4r form > http://home.gna.org/xmpp4r/ > ... > how do I receive messages, since I can only send? Try looking at some of the examples. If you installed the gem, then go to: .../gems/xmpp4r-0.3.2/data/doc/xmpp4r/examples/ And, look for add_message_callback in the RDoc: http://home.gna.org/xmpp4r/rdoc/ http://home.gna.org/xmpp4r/rdoc/classes/Jabber/Stream.html#M000487 examples/basic/echo_threaded.rb: cl = Client::new(myJID) cl.connect ... cl.add_message_callback do |m| if m.type != :error puts m.body end end