Extends

Properties

P writable: boolean

Type:
  • boolean
Inherited From:

Methods

M _write(data: Buffer, encoding: string, callback: function) void

Parameters:
Name Type
data Buffer
encoding string
callback function
Inherited From:
Returns: { void }

M _write(data: string, encoding: string, callback: function) void

Parameters:
Name Type
data string
encoding string
callback function
Inherited From:
Returns: { void }

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

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

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

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

M end() void

Inherited From:
Returns: { void }

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

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

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

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

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

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

M listenerCount(emitter: events.EventEmitter, event: string) number

Parameters:
Name Type
emitter events.EventEmitter
event string
Inherited From:
Returns: { number }

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

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

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

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

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

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

M removeAllListeners(event: string) events.EventEmitter

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

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

Parameters:
Name Type
event string
listener function
Inherited From:
Returns: { events.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>
Inherited From:
Returns: { boolean }

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

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

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

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