Is your feature request related to a problem? Please describe.
Since Producer and Consumer have on methods, I'd expect them be actual NodeJS EventEmitters. But they're not, so code like the following doesn't work:
producer.once(producer.events.DISCONNECT, () => {}) // throws TypeError since `once` is undefined
consumer.removeListener(...) // also not implemented
// etc for every other EventEmitter method
Describe the solution you'd like
Have Producer and Consumer implement all EventEmitter methods.
Is your feature request related to a problem? Please describe. Since
Producer
andConsumer
haveon
methods, I'd expect them be actual NodeJS EventEmitters. But they're not, so code like the following doesn't work:Describe the solution you'd like Have
Producer
andConsumer
implement all EventEmitter methods.