Skip to content

Commit

Permalink
Update example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr authored Apr 24, 2023
1 parent 31cdf53 commit 9a43734
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 @@ -13,16 +13,16 @@ Library for inspecting nostr relays.
```
import { RelayChecker } from 'nostrwatch-js`
let checker;
let $checker;
//pass websocket URL
checker = new RelayChecker('wss://nostr.sandwich.farm');
$checker = new RelayChecker('wss://nostr.sandwich.farm');
checker
$checker
.on('change', (result) => {
console.log('something updated', result);
})
.on('complete', (e, self) => {
.on('complete', (self) => {
console.log('processed result', self.result);
})
```

0 comments on commit 9a43734

Please sign in to comment.