Snappy capability types and attributes

John Lenton john.lenton at canonical.com
Tue Nov 17 16:29:04 UTC 2015


On 17 November 2015 at 16:18, Ted Gould <ted at ubuntu.com> wrote:
> On Tue, 2015-11-17 at 13:10 -0200, Gustavo Niemeyer wrote:
> > A REST API is just an API. How do we allow snaps to react to events?  Would
> > we implement a server doing HTTP polling on every snap?
>
> I imagine the same way REST handles events on the web, by requesting an
> "infinite file" that updates with status. This will have to be done several
> places in the Snappy REST interface as it'll be needed for things like
> status of downloading snaps for a GUI progress bar

so now instead of having a program that's called when and if an event
happens, there is are two programs running all the time in case an
event happens?



More information about the snappy-devel mailing list