Extends

Properties

P writable: boolean

Type:
  • boolean

Methods

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

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

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

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

M end() void

Returns: { void }

M end(buffer: Buffer, cb: function) void

Parameters:
Name Type Argument
buffer Buffer
cb function <optional>
Returns: { void }

M end(str: string, cb: function) void

Parameters:
Name Type Argument
str string
cb function <optional>
Returns: { void }

M end(str: string, encoding: string, cb: function) void

Parameters:
Name Type Argument
str string
encoding string <optional>
cb function <optional>
Returns: { void }

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

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

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

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

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

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

M removeAllListeners(event: string) NodeJS.EventEmitter

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

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

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

M setMaxListeners(n: number) void

Parameters:
Name Type
n number
Inherited From:
Returns: { void }

M write(buffer: Buffer, cb: function) boolean

Parameters:
Name Type Argument
buffer Buffer
cb function <optional>
Returns: { boolean }

M write(str: string, cb: function) boolean

Parameters:
Name Type Argument
str string
cb function <optional>
Returns: { boolean }

M write(str: string, encoding: string, cb: function) boolean

Parameters:
Name Type Argument
str string
encoding string <optional>
cb function <optional>
Returns: { boolean }