new EventEmitter()
sdk/core/lib/event-emitter.js, line 18
Creates an EventEmitter
Methods
-
emit(type)
sdk/core/lib/event-emitter.js, line 133 -
Emits an event with the given type and arguments
Name Type Description type
String ...args
* -
off(type)
sdk/core/lib/event-emitter.js, line 99 -
Removes the given listener from the given type of events
Name Type Description type
String ...args
* -
on(type, listener)
sdk/core/lib/event-emitter.js, line 49 -
Adds the given listener to the given type of events
Name Type Description type
String listener
function -
once(type, listener)
sdk/core/lib/event-emitter.js, line 81 -
Adds the given listener to the given type of events and removes it once it has been triggered
Name Type Description type
String listener
function -
pipeEvents(destination)
sdk/core/lib/event-emitter.js, line 28 -
Pipes all events to the given EventEmitter
Name Type Description destination
EventEmitter -
setMaxListeners(newMaxListeners)
sdk/core/lib/event-emitter.js, line 156 -
Sets the maximum amonut of listeners before a warning is printed
Name Type Description newMaxListeners
Number -
unpipeEvents(destination)
sdk/core/lib/event-emitter.js, line 36 -
Stops piping events to the given EventEmitter
Name Type Description destination
EventEmitter