Skip to content

Commit

Permalink
README: update streaming example
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Nov 16, 2022
1 parent 61c84b1 commit ce44df1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ const insights = await faraday.channelInsights();

```
import { NativeEventEmitter } from 'react-native';
const { lnd } = lnc;
const { LncModule } = NativeModules;
const request = {};
const eventName = lightning.subscribePeerEvents(request);
const eventEmitter = new NativeEventEmitter();
listener = eventEmitter.addListener(eventName, (event: any) => {
const eventName = lnc.lnd.lightning.subscribePeerEvents(request);
const eventEmitter = new NativeEventEmitter(LncModule);
const listener = eventEmitter.addListener(eventName, (event: any) => {
console.log('Got response', event.result);
});
Expand Down

0 comments on commit ce44df1

Please sign in to comment.