[c-lightning] waitinvoice from app

Richard Bondi socketexception at gmail.com
Thu Nov 29 10:58:26 AEDT 2018


When `waitinvoce` is called from the command line, it will sit there
and wait, and when invoice is paid, I get the response

How does this translate to calling it from an app over rpc?

I am using node with the net package

const sock = new net.createConnection(rpcFile);
sock.on('data', (data) => {...}

I send the request, then when the invoice is paid, nothing happens

if I send the request after the invoice is paid I get an immediate response

What is the proper way to subscribe to an invoice event that will get
a notification?

More information about the c-lightning mailing list