Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExpressServerManager<API>

A simple HTTP server built on Express, with an API protected by TypeScript.

It should be noted that although this server is powered by Express, little effort is made to elegantly wrap around the numerous features that Express provides. The goal of this server is to provide basic bootstrapping for express and to implement an interface that can also be implemented by an ExpressClient to ensure that both communicate with each other properly.

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Protected config

config: any

Where configs specific to the ServerManager are stored.

Protected Abstract httpHandlers

httpHandlers: HttpHandlers<API, HandlerCtx<API>>

Defines how the server should react to each request.

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

getPeer

getServer

setup

  • setup(httpServer: Server): void

takedown

  • takedown(): void

Static Protected getDefaultConfig

Generated using TypeDoc