Before and after proposal in broadway.
There are two limitations in the current broadway
implementation which this proposal intends to address:
broadway.App
instances are not granular enough. Currently only these events are emitted:
init
: Emitted when the App has completed initialization.['plugin', name, 'init']
: Emitted when a given plugin has completed initialization.['plugin', name, 'error']
: Emitted when there was an error initializing the given plugin.['broadway', 'logged']
: Emitted when the application has logged a given messagejitsu
to use flatiron
. These hooks need to support async actions as well as sync actions.broadway.App
instances:resourceful
. var app = new broadway.App();
app.before('start', function (callback) {
doSomethingAsync(callback);
});