Realtime next-gen

Requirements for zee future...


 * work over SSL (for use in fully SSL-protected sites)
 * work cleanly and safely for private sites
 * perform well scaled up to a hojillion sites
 * don't mess with things like document.domain if it can be avoided

Cross-domain comms
Unless we can integrate the real-time streams into the same HTTP load balancer as the main web sites, we'll need to pass data across subdomains. Messing with document.domain is limited, and causes problems with other AJAX submissions if the base page's domain isn't a superdomain of the host with the data source.

What about postMessage?
 * allows windows that agree with each other to post data back and forth without direct DOM access, much safer
 * http://dev.w3.org/html5/postmsg/
 * https://developer.mozilla.org/en/dom/window.postmessage
 * Support:
 * Firefox 3+
 * IE 8+
 * Safari (version?)
 * Chrome (version?)
 * Opera (9+?)

Streaming comms
The actual streaming technique...


 * meteor-style ever-loading
 * meteor-style interactive XHR
 * WebSockets
 * not 100% standardized just yet...