Connection class

Constructors

Properties

Methods

Constructors

  • Create a new connection

    Parameters

    • id: number

      The id of the connection

    • socket: TelnetSocket & Socket

      The socket for the connection

    • handler: IHandler

      The handler for the connection

    Returns Connection

    The new connection

Properties

handler: IHandler

The handler for the connection

id: number

The id of the connection

socket: TelnetSocket & Socket

The socket for the connection

The current state of the connection

Methods

  • Handle data received from the connection

    Parameters

    • data: Buffer

      The data received

    Returns void

Generated using TypeDoc