Sunday, December 14, 2008

Hooray for multipart/x-mixed-replace!

Mozilla's support for this content type has allowed me to implement server push in AMI. No more polling. Updating the UI from server events is now much smoother and the traffic to the server is greatly reduced.

Of course IE doesn't support it, from what I've read. Eh, no great loss.

If I wanted to support IE I could implement long polling, which is where the client sends a status request only upon receiving a response. This would be functionally the same as using multipart/x-mixed-replace, but would be a lot of work to implement and supporting IE right now is a low priority for me.

No comments: