Connects microservice to the NestApplication instance. Transforms application to the hybrid instance.
Microservice options object
Enables CORS (Cross-Origin Resource Sharing)
Enables the usage of shutdown hooks. Will call the
onApplicationShutdown
function of a provider if the
process receives a shutdown signal.
The Nest application context instance
Returns an underlying HTTP adapter.
Returns an underlying, native HTTP server.
Returns array of the microservices connected to the NestApplication.
Initializes application. It is not mandatory to call this method directly.
Starts the application.
Optional callback
Starts the application (can be awaited).
(optional)
Allows navigating through the modules tree, for example, to pull out a specific instance from the selected module.
Registers the prefix for the every HTTP route path
The prefix for the every HTTP route path (for example /v1/api
)
Starts all connected microservices asynchronously
Optional callback function
Starts all connected microservices and can be awaited
A wrapper function around HTTP adapter method: adapter.use()
.
Example app.use(cors())
Registers exception filters as a global filters (will be used within every HTTP route handler)
Registers guards as a global guards (will be used within every HTTP route handler)
Registers interceptors as a global interceptors (will be used within every HTTP route handler)
Registers pipes as a global pipes (will be used within every HTTP route handler)
Sets custom logger service
Setup Ws Adapter which will be used inside Gateways.
Use, when you want to override default socket.io
library.
Generated using TypeDoc
Terminates the application (including NestApplication, Gateways, and each connected microservice)