This class implements the communication server.

Constructors

Methods

Constructors

Methods

  • Start the communication server.

    Parameters

    • host: string

      The host to bind to.

    • port: number

      The port to bind to.

    • pingInterval: number = 25000

      The interval in which pings are sent for spare connections.

    • pongTimeout: number = 1000

      The timeout used to wait for pongs.

    Returns Promise<void>