W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

Re: [push-api] Object values in push messages

From: Peter Beverloo <beverloo@google.com>
Date: Tue, 13 May 2014 17:13:16 +0200
Message-ID: <CALt3x6=4TsjE7ncchUnYmona4WpxL1n8NO3WtBGfnHqthbhsNw@mail.gmail.com>
To: Anne van Kesteren <annevk@annevk.nl>
Cc: Martin Thomson <martin.thomson@gmail.com>, "public-webapps@w3.org" <public-webapps@w3.org>, EDUARDO FULLEA CARRERA <efc@tid.es>, "SULLIVAN, BRYAN L (ATTCINW)" <bs3131@att.com>, Doug Turner <dougt@mozilla.com>
There is a current, not yet implemented proposal to change the type of
|data| to DOMString. This also allows for cases in which the UA cannot read
the message's content, which could be the case when encryption is being
used. JSON data would still be perfectly possible, but it has to be
deserialized before usage.

It was discussed to use ArrayBuffers for this purpose, but that makes it
significantly harder to deal with data in the common case.


On Tue, May 13, 2014 at 11:47 AM, Anne van Kesteren <annevk@annevk.nl>wrote:

> On Tue, May 13, 2014 at 12:56 AM, Martin Thomson
> <martin.thomson@gmail.com> wrote:
> > I think that this offers applications more flexibility.  For instance,
> > there are limitations on what can be pushed efficiently, and an
> > application that aims to maximize the value of a push might want to
> > push a binary blob.
> Can't we mirror WebSocket? That seems like it would be quite a bit
> simpler than full-blown HTTP messages.
> --
> http://annevankesteren.nl/
Received on Tuesday, 13 May 2014 15:13:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:24 UTC