Adventures In Comet and Multipart Mime
The Dojo <a href="http://svn.xantus.org/shortbus/trunk/bayeux/protocol.txt">Bayeux</a> client implements a bunch of different "transports" and tries to pick the right one based on what the browser can support, the cross-domain requirements, and so forth. What follows is one of those stories that makes people assume that I'm crazy to do what I do for a living. They might be right.