Closed AkhilKamath closed 1 year ago
All EventEmitters methods where not available on connection. This will be the case in next release
corrected with 3.2.0 release.
Hi @rusher , thanks for the updates and support of event emitter methods! Is there a reason we are not exposing the emit() method? In my code I am handling connection error events but unable to write a testcase for it as I cannot forcefully call the emit method to emit an error event and test my error handling code.
ConnectionPromise
constructor just exposes the.on()
,.once()
, &.listener()
functions of the#conn
object. there doesn't seem a way to remove a listener that was attached usingon()