Server

Server

new Server()

This class encapsulates a Koa application and provides an API for controlling the configuration and life-cycle of application server.

This class encapsulates a Koa application and provides an API for controlling the configuration and life-cycle of application server.

Server contains the following public variables:

  • app The instantiated Koa application
  • config The application-specific configuration object
  • logger A reference to the app logger
Source: