UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

32 lines (21 loc) 1.2 kB
--- lang: en title: 'API docs: core.server' keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI sidebar: lb4_sidebar editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/core permalink: /doc/en/lb4/apidocs.core.server.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/core](./core.md) &gt; [Server](./core.server.md) ## Server interface Defines the requirements to implement a Server for LoopBack applications: start() : Promise<void> stop() : Promise<void> 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. <b>Signature:</b> ```typescript export interface Server extends LifeCycleObserver ``` <b>Extends:</b> [LifeCycleObserver](./core.lifecycleobserver.md) ## Properties | Property | Type | Description | | --- | --- | --- | | [listening](./core.server.listening.md) | boolean | Tells whether the server is listening for connections or not |