[whatwg] Workers feedback

Jonas Sicking wrote:
> Ian Hickson wrote:
>> On Fri, 8 Aug 2008, Jonas Sicking wrote:
>>>>> (We might want to add an onconnect property to WorkerGlobalScope, 
>>>>> but it doesn't seem strictly needed)
>>>> How else would you connect to a shared worker?
>>> That is done at an application level. For example:
>>>
>>> worker = createSharedWorker("foo", "bar.js");
>>> worker.addEventListener("message", handler, false);
>>> worker.postMessage("wassup dude, i just connected");
>>
>> How would the worker distinguish that from the original "parent" 
>> sending the same message?
> 
> Why would the original parent same the message twice? Of course 
> applications following their own application level protocols is going to 
> break themselves.

Sorry, that should say: Of course applications *not* following their own 
application level protocols are going to break themselves.

/ Jonas

Received on Friday, 8 August 2008 12:12:42 UTC