-
say i have a listener to listen to events: await contract.on(filter, ...) how can I stop the listener. I am not willing to kill the process. I'm trying to use it in a node backend where I can start and stop listening to events via express api. |
Beta Was this translation helpful? Give feedback.
Answered by
ricmoo
Dec 27, 2021
Replies: 1 comment 1 reply
-
It follows the normal JavaScript event emitter API, so you can use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
aster2709
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It follows the normal JavaScript event emitter API, so you can use
contract.on(filter, listener)
to start listening andcontract.off(filter, listener)
.