[whatwg] Combining the DedicatedWorker and SharedWorker interfaces

Alexey Proskuryakov ap at webkit.org
Wed Nov 12 03:08:59 PST 2008


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




More information about the whatwg mailing list