Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServerComponent

Server component class

param

current application context

Hierarchy

  • ServerComponent

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

name

name: string = "__server__"

server

server: Server

Methods

afterStart

  • afterStart(cb: function): void
  • Component lifecycle callback

    Parameters

    • cb: function
        • (): void
        • Returns void

    Returns void

globalHandle

handle

start

  • start(cb: function): void
  • Component lifecycle callback

    Parameters

    • cb: function
        • (): void
        • Returns void

    Returns void

stop

  • stop(force: boolean, cb: function): void
  • Component lifecycle function

    Parameters

    • force: boolean

      whether stop the component immediately

    • cb: function
        • (): void
        • Returns void

    Returns void