web3data-js icon indicating copy to clipboard operation
web3data-js copied to clipboard

Accept a string as eventname parameter instead of object

Open taylorjdawson opened this issue 6 years ago • 0 comments

Use Case:

Users want to use web3data event listeners like they use other javascript style listeners (standardization!!).

Requirements:

  • Change the .on() method to allow a string for the event name rather than an object

Example:

w3d.on('block', {filters: {number: 7280000}}, () => {})

taylorjdawson avatar Nov 27 '19 23:11 taylorjdawson