Emit a Custom Event

by @pixiebrix

Emit a custom event with custom data


How to Use

The Emit a Custom Event brick is used to run another installed extension that runs off a trigger. The ‘eventName’ field defines the name used to refer to the extension, which can be put into the ‘Custom Event’ field of the trigger on a trigger extension set to Custom Event. You can also add data to the ‘data’ field to give that extension access to that data from the start.

Be careful about making infinite loops by having an extension trigger itself or extensions triggering each other.


Inputs

Name Required Type Description
data object A custom payload for the event
eventName string A unique name/type for the event

Outputs

Name Required Type Description
No outputs for this brick defined.

@pixiebrix/event

Version

1.7.16

Created

June 19, 2022

Updated

June 29, 2022