An HTTP server instance that allows to control the tool using a REST interface. Moreover, it allows to aggregate stats data coming from multiple running tool instances.

Constructors

  • Server instance. All the HTTP endpoints are protected by basic authentication with user admin and password Server.serverSecret.

    Parameters

    • __namedParameters: {
          pageLogPath: undefined | string;
          serverData: undefined | string;
          serverPort: undefined | number;
          serverSecret: undefined | string;
          serverUseHttps: undefined | boolean;
      } = {}
      • pageLogPath: undefined | string
      • serverData: undefined | string
      • serverPort: undefined | number
      • serverSecret: undefined | string
      • serverUseHttps: undefined | boolean
    • stats: Stats

      A Stats class instance.

    Returns Server

Properties

pageLogPath: string

The file path that will be used to serve the /view/page.log requests.

serverData: string

An optional path that the HTTP server will expose with the /data endpoint.

serverPort: number

The server listening port.

serverSecret: string

The basic auth secret.

serverUseHttps: boolean

If HTTPS protocol should be used.

stats: Stats

A Stats class instance.

Methods