I would like to know how Gmail (or anyone else) does comet on Opera.
Here is what I know so far from my experiments.
GMail uses BrowserChannel (Docs | Source), which is included in Google's Closure Library.
@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.