List of event handlers which should be updated for specified block name .
Each entry for new event handler should contain: name , src , channels , event . name used as event handler name which can be used later to make changes to it.
src is full path to file with event handler code.
channels is name of channel from which event handler is waiting for events.
event is type of event which is able to trigger event handler: js-before-publish, js-after-publish, js-after-presence.
Each entry for existing handlers should contain name (so target handler can be identified). Rest parameters (src , channels and event ) can be added if changes required for them.
It is possible to rename event handler by adding changes key to event handler payload and pass dictionary, which will contain single key name , where new name should be passed.
To remove particular event handler it is possible to set state for it to absent and it will be removed.
|