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

[EventSource] Make it available in Worker

From: Ivan Enderlin @ Hoa <@>
Date: Sun, 22 Apr 2012 09:47:18 -0400
Message-ID: <4F940BE6.8050101@hoa-project.net>
To: public-webapps@w3.org
Hello folks,

Are they any reasons to not have the EventSource interface available in 
a WorkerGlobalScope?

The W3C specifies that they must be no interface objects and 
constructors in this scope [1], and the MDN documentation confirms that 
[2]. Indeed, the EventSource interface [3] has no DOM-related impact 
(e.g. it never uses document or window) and it could be useful to 
receive events from server-side in a Worker.
Moreover, I don't see any particular technical reason that coud be blocking.

Best regards.

[1] http://w3.org/TR/workers/#interface-objects-and-constructors
[3] http://w3.org/TR/eventsource/

Ivan Enderlin
Developer of Hoa
http://hoa.42/ or http://hoa-project.net/

PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis)
http://disc.univ-fcomte.fr/ and http://www.inria.fr/
Received on Sunday, 22 April 2012 13:47:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:33 UTC