How does GMail implement Comet?

。_饼干妹妹 提交于 2019-11-28 17:59:35

Per this article,

So what is the solution used by Google Gmail?

The solution is really simple, straight forward and very portable! What Gmail did is requesting an endless html page that contains streams of Javascript portions. Give it a try, It’s very powerful. So, we will have on the client side a js file that processes the responses, and another endless html that contains the Javascript Streams.

The rest of the article goes into much more detail, including an exploration of alternatives as well as the specific one picked by GMail.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!