基于网络的文字聊天? [英] Web based text chat?

查看:90
本文介绍了基于网络的文字聊天?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个基于网络的近实时聊天系统.关于如何通过jQuery实现此功能的任何建议,需要注意的任何陷阱,以及我一直在阅读的关于Comet的东西是什么?

I'd like to develop a near real time web based chat system. Any suggestions on how to implement this via jQuery, any gotchas to look out for, and what is this Comet thing I keep reading about?

理想情况下,我希望最多支持5,000个并发聊天.

Ideally, I'd like to support up to about 5,000 concurrent chatters.

推荐答案

Comet,也称为Ajax Push,通常称为反向AJAX".不需要定期从服务器提取信息,而是在需要时将数据从服务器推送到浏览器.这需要一个开放的连接,为此有几种实现.

Comet, also known as Ajax Push, is often refered as "Reverse AJAX". Instead of pulling the information from the server in regular intervals, the data is pushed from the server to the browser when it is needed. That requires an open connection, for which there are several implementations.

我建议您使用 APE .这是一个演示: http://www.ape- project.org/demos/1/ape-real-time-chat.html

I recommend that you use APE. Here is a demo: http://www.ape-project.org/demos/1/ape-real-time-chat.html

  • 优势:响应速度非常快 和实时.
  • 缺点:您需要 在您的服务器上设置APE服务器 网络服务器机器.
  • Advantage: It will be very responsive and real-time.
  • Disadvantage: You need to setup the APE server on your webserver machine.

这篇关于基于网络的文字聊天?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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