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.

Thoughts?
Best regards.

[1] http://w3.org/TR/workers/#interface-objects-and-constructors
[2] 
https://developer.mozilla.org/En/DOM/Worker/Functions_available_to_workers
[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 GMT

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