Re: [push-api] Make PushEvent's data payload binary instead of just a string (#88)

> @@ -642,6 +664,100 @@
>      </section>
>      <section>
>        <h2>
> +        <code>PushMessageData</code> interface
> +      </h2>
> +      <div class="idl" title="typedef (Blob or BufferSource or USVString) PushMessageDataInit">
> +      </div>
> +      <dl title=
> +      "[Constructor(PushMessageDataInit init), Exposed=ServiceWorker] interface PushMessageData"

@annevk where might we define such a generic object? WebIDL? Could we just make ArrayBuffer more powerful? I've [made PushMessageData a NoInterfaceObject](https://github.com/johnmellor/push-api/commit/b05231cce0f3415992d2dfeec290a6d174d0ef29) for now so that it could be swapped out for such a generic object in future. Does that sound reasonable? @beverloo's [not convinced](https://github.com/w3c/push-api/pull/88#discussion_r20810189) that it's worth it.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/88/files#r20811259

Received on Monday, 24 November 2014 18:37:43 UTC