Page Contents
Home > @loopback/core > Application > getServer
Application.getServer() method
Retrieve the singleton instance for a bound server.
Signature:
getServer<T extends Server>(target: Constructor<T> | string): Promise<T>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| target | [Constructor](/doc/en/lb4/apidocs.context.constructor.html)<T> \| string |
Returns:
Promise<T>
A Promise of server instance