W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2007

[whatwg] Server sent events: sending documents

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 21 Jun 2007 15:00:26 +0200
Message-ID: <op.tt9vq0xo64w2qv@annevk-t60.oslo.opera.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:56 UTC