this is another relay, so we have two to play with. this one is running on the same machine where live nostrweb is hosted at. at the moment, relay is running nostr-rs-relay v0.7.2: $ curl -H 'accept: application/nostr+json' https://relay.nostr.ch/ { "id": "wss://relay.nostr.ch/", "name": "a nostr relay", "description": "just another nostr relay", "supported_nips": [ 1, 2, 9, 11, 12, 15, 16, 20, 22, 26 ], "software": "https://git.sr.ht/~gheartsfield/nostr-rs-relay", "version": "0.7.2" }pull/41/head
parent
1d23c7098d
commit
343413355f
src
|
@ -1,11 +1,12 @@
|
|||
import {relayPool, generatePrivateKey, getPublicKey, signEvent} from 'nostr-tools';
|
||||
import {elem, parseTextContent} from './domutil.js';
|
||||
import {dateTime, formatTime} from './timeutil.js';
|
||||
// curl -H 'accept: application/nostr+json' https://nostr.x1ddos.ch
|
||||
// curl -H 'accept: application/nostr+json' https://relay.nostr.ch/
|
||||
const pool = relayPool();
|
||||
pool.addRelay('wss://relay.nostr.info', {read: true, write: true});
|
||||
pool.addRelay('wss://relay.damus.io', {read: true, write: true});
|
||||
pool.addRelay('wss://nostr.x1ddos.ch', {read: true, write: true});
|
||||
pool.addRelay('wss://relay.nostr.ch', {read: true, write: true});
|
||||
// pool.addRelay('wss://nostr.openchain.fr', {read: true, write: true});
|
||||
// pool.addRelay('wss://nostr.bitcoiner.social/', {read: true, write: true});
|
||||
// read only
|
||||
|
|
Loading…
Reference in New Issue