ServerComp(app, opts)

new ServerComp(app, opts)

Parameters:
Name Type Description
app Application
opts object
Implements:

Methods

afterStart(cb) → {Void}

Component lifecycle callback
Parameters:
Name Type Description
cb function
Returns:
Void
Implements:

globalHandle()

Proxy server global handle

handle()

Proxy server handle

start(cb) → {Void}

Component lifecycle callback
Parameters:
Name Type Description
cb function
Returns:
Void
Implements:

stop(force, cb) → {Void}

Component lifecycle function
Parameters:
Name Type Description
force Boolean whether stop the component immediately
cb function
Returns:
Void
Implements: