Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do I need for integrating XMPP into Rails?

Here's what I have so far.

  1. XMPP Server - Ejabberd or Vine
  2. XMPP Library in Rails - Blather
  3. XMPP Library on Client - Strophe.js

Is this what I need to integrate chat into my rails app?

EDIT: from the creator of Vine. "It's probably safer to use ejabberd, since its a more full-featured server than vines."

like image 673
wanab33ninja Avatar asked Oct 21 '22 06:10

wanab33ninja


1 Answers

I would have add a comment but unfortunately I don't have enough reputation yet.

If you want to do your chat client side, Strophe is recommended. If you want to store some conversations, you'll do it server-side, but not 'rails server'-side, you should do it 'xmpp server'-side : Ejabberd should store your old messages, romm topics or your contact list. It's his job.

Blather could be usefull to make rails communicate with your xmpp-server. Typical use cases could be making server to server communication, or creating an xmpp bot to interact in your chat : it could be asking questions for a game or managing the room to kick flooders.

like image 146
gvo Avatar answered Oct 26 '22 02:10

gvo