[whatwg] Server sent events: sending documents

If want to send XML or HTML documents from the server using server-sent  
events you have to escape them in some way and then unescape them again on  
the client side. For sending documents it would be more useful if you  
could specify something like the length of the chunk of data and a MIME  
type followed by the actual data and that on the client side you just have  
an attribute on the event that gives you the DOM representation of the  
document similar to what XMLHttpRequest already has. Specifying a new  
format besides application/x-dom-event-stream is probably sufficient.  
Something like application/x-dom-document-event-stream...

Anne van Kesteren

Received on Thursday, 21 June 2007 06:00:26 UTC