Re: Server-Side Events encoded in JSON

2011-04-29 Thread Benjamin Goering
All of this functionality can be built upon the current spec, but constraining the spec to support this convenience precludes other uses. On Wed, Apr 27, 2011 at 11:42 PM, Brett Zamir bret...@gmail.com wrote: user to parse the response text, why not simply allow each event to be a JSON-encoded

Server-Side Events encoded in JSON

2011-04-28 Thread Brett Zamir
user to parse the response text, why not simply allow each event to be a JSON-encoded object of some kind (boolean, number, string, array, object). Then the event.data could be an object which was already conveniently accessible to JavaScript consumers. Presumably server-side libraries would