Interface RunnableApplication

Anything that listens on a port and returns an http.Server can be considered a "RunnableApplication." This matches the API of most common Node.js server frameworks, such as Express and Koa.

If your framework does not support this API explicitly, a simple wrapper should be easy enough to write to satisfy this interface.

Hierarchy

  • RunnableApplication

Properties

Properties

listen: ((port: number, ...args: any[]) => Server<typeof IncomingMessage, typeof ServerResponse>)

Type declaration

    • (port: number, ...args: any[]): Server<typeof IncomingMessage, typeof ServerResponse>
    • Parameters

      • port: number
      • Rest ...args: any[]

      Returns Server<typeof IncomingMessage, typeof ServerResponse>

Generated using TypeDoc