Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xmpp server and ruby on rails integration recommendations?

Trying to build a simple 1-1 with XMPP protocol like on facebook ( offline, online and 1-1 with buddy list )

There are several xmpp ruby library's available on github but its not a easy choose between them, every xmpp rails solution I looked at is outdated.

A few questions:

  1. Is xmpp for ruby on rails the way to go for building a facebook like 1-1 IM? ( have looked in websockets privatepub, juggernaut(rip)) all lack somewhere, nothing seems to beat the XMPP protocol
  2. Whats the best XMPP gem for connecting rails with XMPP server @ 2012? many of them seem outdated, is there any project that is in use -now- and is not updated for a while but is solid enough to use on a project?
like image 341
Rubytastic Avatar asked Feb 19 '12 19:02

Rubytastic


4 Answers

AFAIK, there is no easy way to integrate Rails with XMPP server. You may try https://github.com/maccman/juggernaut for chat/im.

like image 66
Leonid Sobolievskyi Avatar answered Nov 10 '22 19:11

Leonid Sobolievskyi


Faik, take a on Alex post here: http://blog.alexmaccaw.com/killing-a-library. He describes how you can use HTML5 Server-Sent Events with ruby server-side to do same as expected with the se of XMPP.

like image 45
pablolmiranda Avatar answered Nov 10 '22 20:11

pablolmiranda


Try this ruby library: http://home.gna.org/xmpp4r/ It provides full XMPP protocol support.

It lists ActionMessenger in its related projects as a rails convenience framework like ActionMailer.

like image 1
Harry Park Avatar answered Nov 10 '22 18:11

Harry Park


After long digging I found a good solution to fix this:

  • ejabberd xmpp server light memory and full feature set
  • rails 3 + strophe and ember.js ( or another framework but strophe is xmpp client in JS)

This seems a full solution now only you have to write the client yourself

like image 1
Rubytastic Avatar answered Nov 10 '22 19:11

Rubytastic