将XMPP集成到Rails中需要什么? [英] What do I need for integrating XMPP into Rails?

查看:79
本文介绍了将XMPP集成到Rails中需要什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我到目前为止所拥有的。

Here's what I have so far.


  1. XMPP服务器-Ejabberd或

  2. Rails中的XMPP库- Blather

  3. 客户端上的XMPP库-Strophe.js

这是我需要将聊天集成到我的Rails应用程序中吗?

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

编辑:来自Vine的创建者。
使用ejabberd可能更安全,因为它比vines功能更全。

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

推荐答案

I本来可以添加评论,但不幸的是我还没有足够的声誉。

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

如果要进行聊天客户端,建议使用Strophe。如果要存储一些对话,则应在服务器端进行,而不要在 rails服务器端进行,而应在 xmpp服务器端进行:Ejabberd应该存储旧消息,ROM主题或联系人列表。这是他的工作。

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可以使Rails与您的xmpp服务器通信。典型的用例可能是服务器到服务器之间的通信,或者是创建一个xmpp机器人以在您的聊天中进行交互:它可能是询问游戏问题或管理房间以驱赶洪水。

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.

这篇关于将XMPP集成到Rails中需要什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆