Page Contents

Home > @loopback/core > Server

Server interface

Defines the requirements to implement a Server for LoopBack applications: start() : Promise stop() : Promise It is recommended that each Server implementation creates its own child Context, which inherits from the parent Application context. This way, any Server-specific bindings will remain local to the Server instance, and will avoid polluting its parent module scope.


export interface Server extends LifeCycleObserver 


Property Type Description
listening boolean Tells whether the server is listening for connections or not