mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-14 10:58:52 +00:00
remove => from onEvent function in README.md.
This commit is contained in:
@@ -15,7 +15,7 @@ pool.addRelay('ws://some.relay.com', {read: true, write: true})
|
|||||||
pool.addRelay('ws://other.relay.cool', {read: true, write: true})
|
pool.addRelay('ws://other.relay.cool', {read: true, write: true})
|
||||||
|
|
||||||
// example callback function for a subscription
|
// example callback function for a subscription
|
||||||
function onEvent(event, relay) => {
|
function onEvent(event, relay) {
|
||||||
console.log(`got an event from ${relay.url} which is already validated.`, event)
|
console.log(`got an event from ${relay.url} which is already validated.`, event)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user