Open aikar opened 6 years ago
Probably because options.connectOnReady
is hardcoded to false
in ConsumerGroupStream, ignoring the default from the ConsumerGroup instance and the options.
Set manually to true (for testing purpose only) worked for me.
Questions?
Bug Report
Events emitted on the inner consumerGroup instance are not being relayed to the ConsumerGroupStream
This breaks the ability to do consumer.on('connect', () => {}); for example.
It requires you to do consumer.consumerGroup.on('connect') instead.
I suggest events emitted should proxy to the ConsumerGroupStream.
Environment
Example: