[whatwg] Combining the DedicatedWorker and SharedWorker interfaces

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