Library for inspecting nostr relays.
npm install nostrwatch-js
yarn add nostrwatch-js
import { RelayChecker } from 'nostrwatch-js`
let $checker;
//pass websocket URL
$checker = new RelayChecker('wss://relay.nostr.band');
$checker
.on('change', (result) => {
console.log('something updated', result);
})
.on('complete', (self) => {
console.log('processed result', self.result);
})