W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

Re: Server Sent Events vs Web Sockets?

From: Jean-Yves Bitterlich <Jean-Yves.Bitterlich@Sun.COM>
Date: Mon, 12 Apr 2010 18:06:37 +0200
To: Dominique Hazael-Massieux <dom@w3.org>
Cc: public-webapps@w3.org
Message-id: <4BC3450D.3090606@sun.com>
Hi,

Dominique Hazael-Massieux wrote on 12/04/2010 17:58:
> Hi,
> 
> Given the overlap I perceive between Server Sent Events and the Web
> Sockets spec, I would be interested to know what role Server Sent Events
> fills that Web Sockets doesn't.

A remarkable (and IMHO probably most interesting) difference being the
push-registry type of mechanism that Server Events offers
(http://dev.w3.org/html5/eventsource/#eventsource-push).

If a similar (or more generic) push mechanism would be included for Web
Sockets, then I may go along with you :-)

> I understand that Server Sent Events allow for unidirectional
> communication with the server, while Web sockets is bidirectional, and
> SSE is purely HTTP-based, while Web sockets is made to switch to a lower
> level protocol, but this all points to SSE being a subset (feature-wise)
> of Web sockets.
> 
> Is it only a question of timing? i.e. SSE filling the role of Web
> Sockets while Web Sockets is being finalized?
> 
> Currently, the two documents don't reference each other at all; some
> clarification of their relationship in the specs themselves would be
> useful, I think.
> 
> Thanks,
> 
> Dom

-jy


--
Jean-Yves Bitterlich, Senior Staff Engineer
--
Sitz der Gesellschaft: Sun Microsystems GmbH
Sonnenallee 1, D-85551 Kirchheim-Heimstetten, Germany
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Juergen Kunz
Received on Monday, 12 April 2010 16:08:13 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:38 GMT