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.

Signature:

export interface Server extends LifeCycleObserver 

Extends: LifeCycleObserver

Properties

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