On Thu, Mar 14, 2013 at 8:31 AM, <n...@neilstansbury.com> wrote:

> On Thursday, 14 March 2013 14:19:57 UTC, Kyle Huey  wrote:
> >
> >
> >
> > Message passing from a worker to a sub-worker (or vice versa) only
> involves
> >
> > the worker thread and the sub-worker thread.
> >
> >
> >
> > - Kyle
>
> Excellent thanks Kyle, that's what I was hoping.
>
>
> Before I go ahead and re-invent the wheel, does anyone know of any message
> routing pattern to effectively marshal a message from one worker back to
> the poster?
>
> The only option I can see is some kind of combination of
> MessageEvent.target.id +MessageEvent.timeStamp and a lookup table to post
> a response back to the correct onmessage handler. Just wondered if there's
> something more elegant I'm missing?
>

Do you have some sort of hierarchy of workers?  If you just have a parent
and a child talking to each other I don't see why you would need to marshal
anything.

- Kyle
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to