Jabber / XMPP for Rails 3.2

Im looking for a solid and working stone XMPP for rails 3.2

There are hundreds of them online, but most are outdated or alpha.

Can you recommend me one for rails 3.2?

+4
source share
1 answer

The xmpp4r gem works great. ( https://github.com/ln/xmpp4r )

Here is an example:

require 'xmpp4r' sender_jid = Jabber::JID.new(' a@b.com ') client = Jabber::Client.new(sender_jid) client.connect('talk.google.com') client.auth('password') client.send(Jabber::Presence.new.set_show(:chat)).set_status('my status') receiver_jid = Jabber::JID.new(" dest@domain.com ") message = Jabber::Message::new(receiver_jid, "Testing").set_type(:normal).set_id('1') client.send(message) 
+7
source

All Articles