开发者

Chatroom like Facebook [closed]

开发者 https://www.devze.com 2022-12-10 17:36 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported 开发者_JAVA百科by facts, references,or expertise, but this question will likely so
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported 开发者_JAVA百科by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

How does Facebook create a real time popout chatroom when somebody like a friend sends you a chat message?


The technique is called Comet or Long Polling.

See the Wikipedia article for a good introduction.


Take a look at NodeJS, it's much better than long polling.

Also check https://github.com/endtwist/AjaxIM

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号