Comment 2 for bug 1637404

Revision history for this message
Robert Ancell (robert-ancell) wrote :

A proposed solution would be to use [newline delimited JSON](http://ndjson.org/). This would be simpler for clients to manage rather than something heavier like websockets. An example showing how an install event might be sent:

GET /2.0/events HTTP/1.1

HTTP/1.1 200 OK
Content-Type: application/x-ndjson
(snapd blocks)
(a client installs hello-world)
(snapd returns)
{"snaps":{"hello-world":{"status":"installed"}}