Options
All
  • Public
  • Public/Protected
  • All
Menu

A special class that can be attached to HttpServers to manage them; the "management" part must be implemented.

Hierarchy

Index

Constructors

constructor

Properties

Protected config

config: any

Where configs specific to the ServerManager are stored.

Protected httpServer

httpServer: HttpServer

Contains a reference to the HttpServer that this manager is attached to. (only available after it has been attached)

Methods

configure

  • configure(options: any): this

getPeer

  • Since there can be multiple managers on an HttpServer, one manager may wish to communicate with another. This function will return one of the other managers by name.

    Parameters

    • name: string

    Returns ServerManager

getServer

Abstract setup

  • setup(httpServer: Server): any
  • Configures the Node http server instance upon starting.

    Parameters

    • httpServer: Server

    Returns any

Abstract takedown

  • takedown(): any

Static Protected getDefaultConfig

Generated using TypeDoc