Nexys.Events.subscribe()
Subscribe to any Nexys event. You can subscribe to any event listed in Event Types.
Usage
Nexys.Events.subscribe("event.name", (data) => {
// do something
});
Parameters
Parameter | Type | Description |
---|---|---|
eventName | string | Event name to subscribe. |
callback | function | Callback function to execute when event is triggered. |