On Fri, 31 Jul 2020 at 14:35, Nicolas Pace <n...@libre.ws> wrote: > On 7/31/20 1:49 AM, Rafał Miłecki wrote: > > From: Rafał Miłecki <ra...@milecki.pl> > > > > Initial uhttpd ubus API was fully based on JSON-RPC. That restricted it > > from supporting ubus notifications that don't fit its model. > > > > Notifications require protocol that allows server to send data without > > being polled. There are two candidates for that: > > 1. Server-sent events > > I did a quick and dirty implementation of it some time ago, that works > with everything as it is. > You might want to check it out. > https://bugs.openwrt.org/index.php?do=details&task_id=2248 > > Still, eager to see this work done!
My first initial implementation was also PHP based :) It didn't work well with lighttpd though as I had to disable buffering using server.stream-response-body That and looking for something more generic (not PHP based) made me look at uhttpd. -- Rafał _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel