Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Enumeration members

CONNECTED

CONNECTED: = "connected"

Emitted once the socket has successfully been opened to the upstream server

Provides no arguments

ESTABLISHED

ESTABLISHED: = "established"

Emitted once the socket is ready to receive Messages

Provides no arguments

DRAINING

DRAINING: = "draining"

Emitted when the socket is starting to fill up the send buffer, and stops accepting writes. See net.Socket.write for more info.

Provides no arguments

DRAINED

DRAINED: = "drained"

Emit once the socket has emptied the send buffer again. See net.Socket 'drain' for more info.

Provides no arguments

TIMEOUT

TIMEOUT: = "timeout"

Emitted when the socket has timed out. It will be reconnected once the socket gets an attempted write (or next writable call)

Provides no arguments

ACK

ACK: = "ack"

Emitted when the socket receives an ACK message. Mostly for internal use.

WRITABLE

WRITABLE: = "writable"

Emitted when the socket is writable. This is emitted at the same time as the ESTABLISHED and the DRAINED events.

Provides no arguments

ERROR

ERROR: = "error"

Emitted when the socket receives an error.

Provides one argument - the Error object associated with it.

CLOSE

CLOSE: = "close"

Emitted when the socket is closed for any reason.

Legend

  • Constructor
  • Method
  • Protected method
  • Static method

Generated using TypeDoc