mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-09 16:48:50 +00:00
now it works.
This commit is contained in:
@@ -14,7 +14,7 @@ pool.setPrivateKey('<hex>') // optional
|
||||
pool.addRelay('ws://some.relay.com', {read: true, write: true})
|
||||
pool.addRelay('ws://other.relay.cool', {read: true, write: true})
|
||||
|
||||
pool.onEvent((context, event, relay) => {
|
||||
pool.onEvent((event, context, relay) => {
|
||||
console.log(`got a relay with context ${context} from ${relay.url} which is already validated.`, event)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user