[whatwg] Server sent events: sending documents
Anne van Kesteren
annevk at opera.com
Thu Jun 21 06:00:26 PDT 2007
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
<http://annevankesteren.nl/>
<http://www.opera.com/>
More information about the whatwg
mailing list