Interface HttpServerResult

Result returned when starting the managed HTTP server.

interface HttpServerResult {
    app: Application;
    baseUrl: string;
    port: number;
    server: Server<typeof IncomingMessage, typeof ServerResponse>;
    stop: (() => Promise<void>);
}

Properties

app: Application

The Express application instance

baseUrl: string

The base URL of the running server

port: number

The port the server is listening on

server: Server<typeof IncomingMessage, typeof ServerResponse>

The underlying HTTP server instance

stop: (() => Promise<void>)

Stop the server gracefully

Type declaration

    • (): Promise<void>
    • Returns Promise<void>