开发聊天API这样的#1 [英] Developing Chat API like that of Stackoverflow

查看:150
本文介绍了开发聊天API这样的#1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何开始开发聊天API,就像一个计算器使用?如果它是开源的,我在哪里可以找到它,如果不是任何人都可以指导我如何建立一个类似的聊天API?

How to begin developing chat api, like the one stackoverflow uses? If it is open source, where can i find it, if not can anyone guide me how to build a similar chat api?

推荐答案

现在它的彗星的时间。结果
彗星是反向ajax.If您在聊天应用用ajax u需要检查每次数据库updations但在彗星它的所有关于服务器端事件的情况。

Now its the time of comet.
comet is reverse ajax.If you are using ajax in chat applications u need to check everytime for database updations but in the case of comet its all about server side events.

我们可以设置某些事件@server侧,然后它会自动更新,当数据库越来越updated.that是我们并不需要给请求的所有时间的网页。

We can set the certain events @server side then it will automatically update the webpage when the database is getting updated.that is we do not need to give requests all the time.

这样我们就可以避开服务器头痛由于大量请求和应用程序将是非常快的多。

So that we can avoid the server headache due to large number of requests and the application will be very much faster.

这是彗星使用实时聊天的例子。结果
检查出来:<一href=\"http://www.zeitoun.net/articles/comet_and_php/start\">http://www.zeitoun.net/articles/comet_and_php/start

This is a live chat example using comet.
check it out: http://www.zeitoun.net/articles/comet_and_php/start

其超越阿贾克斯

这篇关于开发聊天API这样的#1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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