如何做的Gmail彗星上戏? [英] How does Gmail do comet on Opera?

查看:140
本文介绍了如何做的Gmail彗星上戏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道的Gmail(或其他人)是如何做的歌剧彗星。

I would like to know how Gmail (or anyone else) does comet on Opera.

下面是我知道的,到目前为止从我的实验。

Here is what I know so far from my experiments.

  1. 在它不使用事件源标记被打破在Opera 10.51。
  2. 在它不使用iframe它显示一个旋转的活动指示器和一个繁忙的鼠标光标。
  3. 在它不能在xmlhtt prequest使用的responseText时readyState的= 3这是众所周知的歌剧被打破。
  1. It doesn't use the event-source tag which is broken in Opera 10.51.
  2. It doesn't use iframe which displays a spinning throbber and a busy mouse cursor.
  3. It doesn't use responseText on xmlhttprequest when readyState = 3 which is known to be broken on Opera.

我想看到它是如何在mibbit和EtherPad的已经过去,我发现他们都使用长轮询。

I tried seeing how it was done in mibbit and etherpad, and I found that they both use long-polling.

赏金

赏金去谁可以告诉我一个方法而不是事件源歌剧彗星流,或者如何Gmail不会流(或长轮询,如果它确实是)。

The bounty goes to whoever can tell me a method better than "event-source" for Opera comet streaming, or how gmail does streaming (or long-polling if it does that).

推荐答案

Gmail使用BrowserChannel(的文档 | <一个href="http://closure-library.google$c$c.com/svn/docs/closure_goog_net_browserchannel.js.source.html">Source),它包含在谷歌的封库

GMail uses BrowserChannel (Docs | Source), which is included in Google's Closure Library.

      
  • 的BrowserChannel类@fileoverview定义。一个BrowserChannel
  •   
  • 模拟双向插座通过HTTP。这是
  • 的基础   
  • 在Gmail的聊天IM连接到服务器。
  •   
  • @fileoverview Definition of the BrowserChannel class. A BrowserChannel
  • simulates a bidirectional socket over HTTP. It is the basis of the
  • Gmail Chat IM connections to the server.

这篇关于如何做的Gmail彗星上戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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