Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ramin committed Mar 18, 2024
1 parent 33d5dc5 commit 37b14e5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ To open a channel and watch for events
// example fo handling events
for message := range channel {
switch message.Type {
case eclair.ChannelOpened:
// handle channel opened event
case eclair.ChannelClosed:
// handle channel closed event
case eclair.PaymentReceived
// handle channel closed event
case eclair.ChannelOpened:
// handle channel opened event
case eclair.ChannelClosed:
// handle channel closed event
case eclair.PaymentReceived
// handle channel closed event
//...etc for all/any message type
}
}
```

0 comments on commit 37b14e5

Please sign in to comment.