new ServerComp(app, opts)
Parameters:
| Name | Type | Description |
|---|---|---|
app |
Application | |
opts |
object |
- Implements:
Methods
-
afterStart(cb) → {Void}
-
Component lifecycle callback
Parameters:
Name Type Description cbfunction Returns:
Void- Implements:
-
globalHandle()
-
Proxy server global handle
-
handle()
-
Proxy server handle
-
start(cb) → {Void}
-
Component lifecycle callback
Parameters:
Name Type Description cbfunction Returns:
Void- Implements:
-
stop(force, cb) → {Void}
-
Component lifecycle function
Parameters:
Name Type Description forceBoolean whether stop the component immediately cbfunction Returns:
Void- Implements: