DCS World Typescript
    Preparing search index...

    A class representing a web application, extending the functionality of HttpServer.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    errorMiddleware: AppErrorMiddleware
    errors: { error: Error; [key: string]: any }[] = []

    The request handler to be used when serving requests

    logger: Logger
    requestHandlers: { method?: string; middleware: AppMiddleware; route?: string }[]
    server: TCP

    The underlying TCP server.

    Methods

    • Accepts the next client connection. When a client connects, it handles the client's request.

      Returns void

      // Accept and handle the next client
      httpServer.acceptNextClient();
    • Returns void

    post