@loopback/docs
Version:
Documentation for LoopBack 4
30 lines (19 loc) • 1.04 kB
Markdown
lang: en
title: 'API docs: core.server'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.core.server.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/core](./core.md) > [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
```
## Properties
| Property | Type | Description |
| --- | --- | --- |
| [listening](./core.server.listening.md) | <code>boolean</code> | Tells whether the server is listening for connections or not |