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<T> | string  

Returns:

Promise<T>

A Promise of server instance