Class WebServer

Hierarchy

  • WebServer

Constructors

  • Parameters

    • __namedParameters: {
          XDomain?: boolean;
          netPort?: number;
          openPath?: string | boolean;
          proxyMap?: Record<string, string>;
          staticPath?: string;
      } = {}
      • Optional XDomain?: boolean
      • Optional netPort?: number
      • Optional openPath?: string | boolean
      • Optional proxyMap?: Record<string, string>
      • Optional staticPath?: string

    Returns WebServer

Properties

XDomain?: boolean
address?: AddressInfo
netPort?: number
openPath?: string | boolean
staticPath?: string

Accessors

  • get baseURL(): string
  • Origin URI

    Returns string

  • get openURL(): string
  • URL to open in default browser

    Returns string

Methods

  • Create a server in the same Node.JS process

    Returns Server<typeof IncomingMessage, typeof ServerResponse>

  • Boot a server in a forked Node.JS process

    Returns Promise<AddressInfo>

  • Returns {
        address: string;
        family: string;
    }

    • address: string
    • family: string

Generated using TypeDoc