Skip to main content

Basic Usage

Installation

The basic installation of the event bus is straight forward. Download the script and import it as a package into Nexus. Then log out and reload the tab before logging in again. That makes sure everything is loaded fresh.

If you make sure, loading worked, check the browser console for the following messages:

loading event bus...
event bus loaded.

Using the event bus

To use the event bus in your code, access the global eventBus object:

eventBus.subscribe("myEvent", (data) => {
console.log(data);
});