html5 eventsource vs websockets
Updated 05-Jun-2012Originally posted on 13-Jun-2012 by Lori MacVittie F5.HTML5 fasterapp webperf SPDY So much alike, yet so vastly a different impact on the data center A recent post on the HTTP 2.0 War beginning garnered a very relevant question Html5 Intro Html5 Support Html5 New Elements Html5 Semantics Html5 Migration Html5 Style Guide.The EventSource object is used to receive server-sent event notifications: Example. var source new EventSource("demosse.php") source.onmessage function(event) HTML5 Server-Sent Events. SSE Architecture. EventSource API. Browser Support.
WebSockets vs. Server-Sent events/EventSource. HTML5Rocks has some good information on SSE. From that page: Server-Sent Events vs. WebSockets. Why would you choose Server-Sent Events over WebSockets?