W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2008

[whatwg] Combining the DedicatedWorker and SharedWorker interfaces

From: Alexey Proskuryakov <ap@webkit.org>
Date: Wed, 12 Nov 2008 14:08:59 +0300
Message-ID: <45AA3532-54FC-4B85-9A68-7220CB1E02AA@webkit.org>

Nov 4, 2008, ? 10:08 AM, Aaron Boodman ???????(?):

> * Add startConversation() to SharedWorker, but rename it "connect()"
> and make the onconnect event fire inside the worker each time it is
> called.


What event do you suggest to dispatch in the worker when connect() is  
called? From the above, it formally follows that a MessageEvent with  
name "message" is dispatched, so a handler could also be installed as

addEventListener("message", onConnect, true);

This doesn't look very intuitive or straightforward, considering that  
message event handlers are also installed by ports to listen to  
messages.

- WBR, Alexey Proskuryakov
Received on Wednesday, 12 November 2008 03:08:59 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:07 UTC