浏览器上的即时消息

发布于 2024-08-01 23:50:33 字数 185 浏览 2 评论 0原文

简介:我想开发一个聊天客户端,用户可以在浏览器上聊天,我使用的协议称为xmpp。 由于 HTML5 Web 套接字尚不可用,我尝试使用 flash xmlsocket。

问题:我无法通过浏览器连接到服务器。 我不知道为什么,但我认为这是服务器配置的问题。

问题:最适合这项工作的 jabber 服务器是什么?

Introduction: I want to develop the chat client that user can chat on the browser and I use the protocol call xmpp. Because of HTML5 web socket not yet available I try flash xmlsocket instead.

Problem: I cannot connect to the server via browser. I'm not sure why, but I think that it is the problem of the server configuration.

Question: Which is the best jabber server suitable for this job?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

拔了角的鹿 2024-08-08 23:50:33

这很可能是一个权限问题。 或者您刚刚配置了错误的主机/端口来连接。 Flash 不允许连接到除从其自身获得的主机之外的其他主机。 您必须在请求的接收端(即您要连接的聊天服务器上)明确允许 Flash 连接。 Google for crossdomain.xml 以获取更多信息。

Most probably this is a permission issue. Either that or you've just configured the wrong host/port to connect to. Flash is not allowed to connect to other hosts than the one it was gotten from itself. You have to explicitely allow flash connections on the receiving side of the request (so on the chat server that you are connecting to). Google for crossdomain.xml to get more info.

沉睡月亮 2024-08-08 23:50:33

ejabberd 听起来是一个适合您的选择。 ejabberd 是用 erlang 编写的 xmpp 服务器,使用相当广泛。 许多众所周知的基于 Web 的 IM 服务(例如 www.meebo.com 等)都在 ejabberd 上运行。 它允许您安装其他传输,这将使您能够与其他协议的用户交谈,如 yahoo、msn、icq 等。

您还可以查看 xiff 动作脚本库,由 ignite realtime 提供。 它是一个动作脚本中的 xmpp 客户端库。 如果您使用这个库,您只需要实现 ui 组件。

ejabberd sounds like a suitable option for you. ejabberd is xmpp server written in erlang and is used quite widely. Many of the well known web based im services like www.meebo.com etc are known to be running on ejabberd. It allows you to install other transports which would let you enable talking to users of other protocol like yahoo, msn, icq etc.

You can also have a look at the xiff action script library by ignite realtime. It is an xmpp client library in action script. If you use this library you would just need to implement the ui components.

挥剑断情 2024-08-08 23:50:33

嗯... flash 还可以,但是你最好使用 BOSH,它基本上是 XMPP 上的 HTTP 层。

Ejabberd 将是一个很好的服务器,因为它支持 BOSH,我不知道 OpenFire 或 Tigase (但我会说它们支持)。 其他服务器应该仔细查看,因为它们似乎没有“动态”社区。

您将需要大量的 Javascript,为此,我可以推荐 StropeJS,这可能是当今最好的库。

我们创建了一个名为 Aristochat 的 MUC(多用户聊天室)客户端,可在最近在 Superfeedr 上使用了该浏览器。 您可以在 Github 上找到代码,并在此处找到示例

Hum... flash is ok, but you'd be better of using something like BOSH, which is basically an HTTP layer over XMPP.

Ejabberd would be a good server, as it supports BOSH, I don't know about OpenFire or Tigase (but I'd say they do). Other servers should be looked at carefully because they don't seem to have a "dynamic" community.

You will need a lot of Javascript, and for that, I can recommend StropheJS, which is probably the very best library out there today.

We have created a MUC (Multi-user chat room) client called Aristochat that works in the browser recently at Superfeedr. You can find the code on Github and an example here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文