Closed naggingant closed 4 years ago
The issue emerged as we wrapped the event emitter implementations of channels, connections several times in the plugins. I decided to forward events in a bidirectional manner, in order to prevent any potential issue.
But this decision might have been wrong because we probably just need to proxy the events from the underlying emitter to the outside :thinking: When we can eventually conclude so, this fix isn't needed anymore.
Ok, I think we can keep it undocumented for now then
Fixes three bugs with event forwarding:
duplex
plugin was breaking event propagationThe helper is actually fundamental to our plugin system, as wrapper classes must not block any event either from the underlying event emitter, or from the end-users