[whatwg] Web Workers: include simple example for shared workers

Simon Pieters simonp at opera.com
Thu Feb 25 11:06:58 PST 2010

On Thu, 25 Feb 2010 18:58:37 +0100, Drew Wilson <atwilson at google.com>  

> BTW, I think it's valuable to point out in the example that
> MessageEvent.target == the port that received the message (so we don't  
> need
> to use a closure as in the example below - just use
> event.target.postMessage()).

Yes, I think using this.postMessage() should also work.

Simon Pieters
Opera Software

More information about the whatwg mailing list