Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebServer

Implements a web server which is comprised of a set of Controllers.

Hierarchy

  • WebServer

Index

Constructors

constructor

Properties

Readonly appOptions

appOptions: ApplicationOptions

Readonly logger

logger: Logger

Readonly options

Readonly websockets

websockets: ws.Server

Accessors

engine

injector

  • get injector(): Injector

serviceDescription

Methods

addRoute

  • addRoute(definition: RouteDescription, method: string, path: string, handler: (event: WebEvent) => void, middleware?: any[]): void

handleError

reportRequest

  • reportRequest(event: WebEvent, source: string): void

start

  • start(): Promise<void>

startConduit

startSocket

  • startSocket(): Promise<WebSocket>

stop

  • stop(): void

Static bootstrapCloudFunction

  • bootstrapCloudFunction(entryModule: any, options?: ApplicationOptions): any

Static for

Static register

  • register(webService: any, server: WebServer): void

Static startConduit

Static startSocket

  • startSocket(): Promise<WebSocket>

Generated using TypeDoc