nostrwatch-js

0.0.49 • Public • Published

nostrwatch-js

Library for inspecting nostr relays.

Install

npm

npm install nostrwatch-js

yarn

yarn add nostrwatch-js

Usage

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);
  })

Dependents (0)

Package Sidebar

Install

npm i nostrwatch-js

Weekly Downloads

0

Version

0.0.49

License

none

Unpacked Size

82.1 kB

Total Files

25

Last publish

Collaborators

  • sandwiches