web workers postMessage

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

web workers postMessage

Elisabeth Robson
I am trying to figure out Web Workers, and am having a terrible time understanding what values are allowed to be sent and received by postMessage. It doesn't seem like the spec spells that out anywhere. I've checked both 


and


I'm sure I could just be missing it, but it doesn't seem like it's specified anywhere. It would be very useful to include this in the spec in both of these relevant locations.

Thanks

Elisabeth Robson

Reply | Threaded
Open this post in threaded view
|

Re: web workers postMessage

Michael[tm] Smith
In response to the following message:

  http://www.w3.org/mid/CAFSNtX4ea0p3f=2Jd4MQzGUsrdcrvpqFpftew+1DcVV+uoFXcg@...

... the following bug has been raised in the W3C Bugzilla database:

  http://www.w3.org/Bugs/Public/show_bug.cgi?id=13580

You are encouraged to add yourself to the CC List for the bug -- which
will require that you create a W3C Bugzilla user account (if you don't
have one already):

  http://www.w3.org/Bugs/Public/createaccount.cgi

Reply | Threaded
Open this post in threaded view
|

Re: web workers postMessage

Ian Hickson
In reply to this post by Elisabeth Robson
On Wed, 13 Jul 2011, Elisabeth Robson wrote:
>
> I am trying to figure out Web Workers, and am having a terrible time
> understanding what values are allowed to be sent and received by
> postMessage. It doesn't seem like the spec spells that out anywhere.

I've added some example prose in various places in the spec explicitly
saying that structured data can be sent.

The precise rules are those given by the "structured clone" algorithm
referenced in the definition of the postMessage() methods.

HTH,
--
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'