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/