Skip to main content

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

ParameterTypeDescription
eventNamestringEvent name to subscribe.
callbackfunctionCallback function to execute when event is triggered.