Jack Mallers
7 years ago
5 changed files with 30 additions and 2 deletions
@ -0,0 +1,12 @@ |
|||
/* eslint-disable */ |
|||
|
|||
export default function subscribeToChannelGraph(mainWindow, lnd) { |
|||
console.log('subscribeChannelGraph is happening') |
|||
|
|||
const call = lnd.subscribeChannelGraph({}) |
|||
|
|||
call.on('data', channelGraphData => mainWindow.send('channelGraphData', { channelGraphData })) |
|||
call.on('end', () => console.log('channel graph end')) |
|||
call.on('error', error => console.log('channelgraph error: ', error)) |
|||
call.on('status', channelGraphStatus => mainWindow.send('channelGraphStatus', { channelGraphStatus })) |
|||
} |
@ -1,7 +1,9 @@ |
|||
import subscribeToTransactions from './transactions' |
|||
import subscribeToInvoices from './invoices' |
|||
import subscribeToChannelGraph from './channelgraph' |
|||
|
|||
export default (mainWindow, lnd) => { |
|||
subscribeToTransactions(mainWindow, lnd) |
|||
subscribeToInvoices(mainWindow, lnd) |
|||
subscribeToChannelGraph(mainWindow, lnd) |
|||
} |
|||
|
Loading…
Reference in new issue