Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • EventEmitter
    • Server

Index

Constructors

  • new Server(pod: Pod, options: ServerOptions): Server

Properties

httpServer?: Server
pod: Pod
port: number
watcher?: FSWatcher
AUTORELOAD_PATHS_REGEX: RegExp = ...
CLEAR_MODULE_CACHE_PATH_REGEX: RegExp = ...
Events: { LISTENING: string; RELOAD: string } = ...

Type declaration

  • LISTENING: string
  • RELOAD: string
PLUGINS_PATH: string = '/plugins'
SRC_PATH: string = '/src'

Methods

  • clearModuleCache(): void
  • createApp(): Promise<Express>
  • onListen(): void
  • onchange(path: string): void
  • reload(): Promise<void>
  • Reinstantiates the pod and restarts the server, which has the side effect of reloading any changes from amagaki.ts.

    Returns Promise<void>

  • safeWarmup(): Promise<void>
  • start(options?: { incrementPort?: Boolean }): Promise<void>
  • Starts the web server.

    Parameters

    • options: { incrementPort?: Boolean } = ...
      • Optional incrementPort?: Boolean

    Returns Promise<void>

  • stop(): Promise<void>
  • watch(): void

Generated using TypeDoc