Hi Alan,
Thank you for your answer, but or I miss something, or I didn't explain explain myself correctly.
I'm aware about h.authorized method, but it allows restrict listening, but it not restrict broadcasting (at least that is what I see from the source code).
For example, I have ten different modules, what I want, is to allow for all these modules to listen to "screen-resize" event, but only one of them allowed to broadcast it. Currently, there nothing that prevents from all modules to broadcast the event, even if it not supposed to. In each of my ten modules I can write this.hub.broadcast("screen-resize", {newSize: 1024}); and nothing will prevent it to reach all listeners.
If I'm wrong, can you point me to the line numbers in code, where the h.broadcast method checks if hub/module allowed to broadcast the specific event.
Thank you.