[c-lightning] Pubsub API?

ZmnSCPxj ZmnSCPxj at protonmail.com
Fri Aug 3 16:24:37 AEST 2018

Good morning Will,

C-lightning JSONRPC implementation is geared towards command-response, not pubsub, so tapping there will require quite a bit of rework.  In principle this is doable due to how ctan asynchronous I/O allows creating separate read and write "greenthreads", so it should be possible to push messages to the JSONRPC socket whenever gossipd accepts an update.

(admittedly my knowledge of c-lightning code is a few months old at this point, so...)


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On August 2, 2018 10:09 PM, William Casarin <jb55 at jb55.com> wrote:

> Hey c-lightning devs,
> I want to a build an opengl visualization client. My requirements are:
> -   access to channel events (updates, announcements, etc) I want to
>     visualize updates as glowing edges between nodes, announcements for
>     rendering new nodes, etc.
>     Perhaps a realtime pubsub api might be appropriate? Any suggestions on
>     what type of transport format/api we could use for this? Otherwise I was
>     going to use the wire format that we current use between our daemons,
>     but that seems a bit invasive.
>     Let me know what ya'll think!
>     Cheers,
>     Will
>     --
>     https://jb55.com
>     --
>     c-lightning mailing list
>     c-lightning at lists.ozlabs.org
>     https://lists.ozlabs.org/listinfo/c-lightning

More information about the c-lightning mailing list