W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2009

[whatwg] <eventsource>/RemoteEventSource wierdness

From: Michael Nordman <michaeln@google.com>
Date: Mon, 2 Mar 2009 17:06:30 -0800
Message-ID: <fa2eab050903021706w169c917eh397a2119006c6b54@mail.gmail.com>
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/
>
Received on Monday, 2 March 2009 17:06:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:47:49 GMT