From 4c785279bc968a65db1efe21b5d4d34173e012df Mon Sep 17 00:00:00 2001 From: Melvin Carvalho Date: Wed, 2 Feb 2022 23:48:14 +0100 Subject: [PATCH] remove => from onEvent function in README.md. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9244b99..19cdfed 100644 --- a/README.md +++ b/README.md @@ -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) }