Methods

M addListener(event: string, listener: function) NodeJS.EventEmitter

Parameters:
Name Type
event string
listener function
Returns: { NodeJS.EventEmitter }

M emit(event: string, ...args: any) boolean

Parameters:
Name Type Argument
event string
...args any <repeatable>
Returns: { boolean }

M listeners(event: string) function()[]

Parameters:
Name Type
event string
Returns: { Array.<function()> }

M on(event: string, listener: function) NodeJS.EventEmitter

Parameters:
Name Type
event string
listener function
Returns: { NodeJS.EventEmitter }

M once(event: string, listener: function) NodeJS.EventEmitter

Parameters:
Name Type
event string
listener function
Returns: { NodeJS.EventEmitter }

M removeAllListeners(event: string) NodeJS.EventEmitter

Parameters:
Name Type Argument
event string <optional>
Returns: { NodeJS.EventEmitter }

M removeListener(event: string, listener: function) NodeJS.EventEmitter

Parameters:
Name Type
event string
listener function
Returns: { NodeJS.EventEmitter }

M setMaxListeners(n: number) void

Parameters:
Name Type
n number
Returns: { void }