Manage event listeners on the b9
instance.
Adds a listener to the list of listeners for this event.
-
event
{String}
The name of the event. -
listener
{Function}
A callback to be invoked when the named event is emitted.
Removes listener(s) from the list of listeners for this event.
-
event
{String}
The name of the event. -
listener
{Function}
A callback which can be matched exactly for removal.
Triggers the list of listeners, with arguments, for this event.
-
event
{String}
The name of the event. -
arg1, arg2, ...
{Any}
Optional argument(s) to pass intolistener
callbacks.