Extends

Properties

P bufferSize: number

Type:
  • number
Inherited From:

P bytesRead: number

Type:
  • number
Inherited From:

P bytesWritten: number

Type:
  • number
Inherited From:

P localAddress: string

Type:
  • string
Inherited From:

P localPort: number

Type:
  • number
Inherited From:

P remoteAddress: string

Type:
  • string
Inherited From:

P remoteFamily: string

Type:
  • string
Inherited From:

P remotePort: number

Type:
  • number
Inherited From:

Methods

M connect(port: number, host: string, connectionListener: function) void

Parameters:
Name Type Argument
port number
host string <optional>
connectionListener function <optional>
Inherited From:
Returns: { void }

M connect(path: string, connectionListener: function) void

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

M destroy() void

Inherited From:
Returns: { void }

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 end(data: any, encoding: string) void

Parameters:
Name Type Argument
data any <optional>
encoding string <optional>
Inherited From:
Returns: { void }

M pause() void

Inherited From:
Returns: { void }

M ref() void

Inherited From:
Returns: { void }

M resume() void

Inherited From:
Returns: { void }

M setEncoding(encoding: string) void

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

M setKeepAlive(enable: boolean, initialDelay: number) void

Parameters:
Name Type Argument
enable boolean <optional>
initialDelay number <optional>
Inherited From:
Returns: { void }

M setNoDelay(noDelay: boolean) void

Parameters:
Name Type Argument
noDelay boolean <optional>
Inherited From:
Returns: { void }

M setTimeout(timeout: number, callback: function) void

Parameters:
Name Type Argument
timeout number
callback function <optional>
Inherited From:
Returns: { void }

M unref() void

Inherited From:
Returns: { void }

M write(buffer: Buffer) boolean

Parameters:
Name Type
buffer Buffer
Inherited From:
Returns: { boolean }

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 }

M write(str: string, encoding: string, fd: string) boolean

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

M write(data: any, encoding: string, callback: function) void

Parameters:
Name Type Argument
data any
encoding string <optional>
callback function <optional>
Inherited From:
Returns: { void }