KoApache
    Preparing search index...

    Class WebServer

    Index

    Constructors

    • Parameters

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

      Returns WebServer

    Properties

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

    Accessors

    • 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 }