Created
April 12, 2019 04:09
-
-
Save alexbosworth/ccd701f7535d7a48045f1fafae5fd31a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sub = lnd.sendPayment(); | |
sub.on('error', err => { | |
console.log("ERR", err); | |
}) | |
sub.on('end', () => console.log("END")); | |
sub.on('status', status => console.log("STATUS", status)); | |
sub.on('data', data => { | |
console.log("PAYMENT", data); | |
}) | |
sub.write(params); | |
setTimeout(() => { | |
sub.end(); | |
}, | |
3000); | |
return; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment