nevill / zongji

A mysql binlog listener running on Node.js.
Other
376 stars 118 forks source link

How to remove event listener? #114

Closed ekoeryanto closed 5 years ago

ekoeryanto commented 5 years ago

Is there a way to remove a listener? such as

zongji.on('binlog', () => {})

zongji.removeEventListener(...)

thanks

nevill commented 5 years ago

Sure, as simple as removeListener.

ekoeryanto commented 5 years ago

something silly from me, there is a sample from the example