[whatwg] <eventsource>/RemoteEventSource wierdness

Michael Nordman michaeln at google.com
Mon Mar 2 17:06:30 PST 2009


On Mon, Mar 2, 2009 at 4:48 PM, Anne van Kesteren <annevk at opera.com> wrote:
> On Tue, 03 Mar 2009 05:49:12 +0900, Michael Nordman <michaeln at google.com>
> wrote:
>>
>> A cross-page event broadcast facility is co-mingled with the
>> DOMStorage corner of the spec (see 5.11.1.5 The storage event).
>>
>> It may be nice to carve that out as a separate facility that can be
>> utilized in the absence of storage.
>
> Take a look at postMessage() ;-) (It ships in all browsers.)

I was under the impression that postMessage() was directed at a
particular window (or context). Does postMessage have a broadcast
capability?

Storage events have a broadcast'ish nature to them. Multiple windows
(or contexts) will receive storage events as changes are made to the
'storage' area. The sender does not need to know anything about the
receivers or of their existence.


>
>
> --
> Anne van Kesteren
> http://annevankesteren.nl/
>



More information about the whatwg mailing list