The server module of the webserver adapter.
Used only internally by the adapter.
Methods
(static) shutdownServer(container)
Shut down the server instance
Parameters:
Name | Type | Description |
---|---|---|
container |
Object | The container context |
(async, static) startupServer(container, api) → {Promise}
Setup and start the server instance
Parameters:
Name | Type | Description |
---|---|---|
container |
Object | The container context |
api |
Object | The array of REST API endpoints |
Returns:
A promise, that resolves to the server instance
- Type
- Promise