NOTICE:
This content is in the "archives" of a retired blog called Gadgetopia. It has been moved to this subdomain as it is no longer considered relevant to the site. It is being hosted here for a indeterminate period of time. Its existence at this URL is not guaranteed, and it may be removed at any time. If you would like to refer to this content in the future, you are encouraged to save it to your local file system.

Some content from Gadgetopia was moved to the technical blog on deanebarker.net

The Hacks Behind Comet

Originally published by "dbarker" on 2007-12-15 09:34:00Z

The Future of Comet: Part 1, Comet Today: Remember Comet? This came close on the heels of Ajax, and is its twin. Whereas Ajax allows the browser to “reach back” to the server and say “hey, something happened,” Comet does the same for the server. It can now “reach forward” and notify the browser of something.

This article is a good introduction to the complexity and technology behind Comet. Honesty reigns supreme:

Comet is a giant hack. Even when it works flawlessly and efficiently, bringing us real-time interactive applications, deftly weaving around firewalls and browsers, avoiding unfriendly side effects, and cutting latency to near zero, it does so using mechanisms unforeseen by browser vendors, and unspecified by web standards.

It’s a good look at ingenuity, and there’s some information about how a standard is trying to develop around it.