remove => from onEvent function in README.md.

This commit is contained in:
Melvin Carvalho
2022-02-02 23:48:14 +01:00
committed by fiatjaf
parent 6786641b1d
commit 4c785279bc

View File

@@ -15,7 +15,7 @@ pool.addRelay('ws://some.relay.com', {read: true, write: true})
pool.addRelay('ws://other.relay.cool', {read: true, write: true})
// 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)
}