# OPTIONAL_PORT_NAMES

The ports a host may leave out. Each is an optional key of `Services`, so
the ui must work without it. The reference host builds a real adapter for
each of these except the ones in [`HOST_SUPPLIED_PORT_NAMES`](https://docs.mapcairn.com/api/core/contracts/HOST_SUPPLIED_PORT_NAMES.md).

This is a constant exported by `@mapcairn/core/contracts`, checked against version 0.2.0.

## Signature

```ts
import { OPTIONAL_PORT_NAMES } from "@mapcairn/core/contracts";
 
OPTIONAL_PORT_NAMES: readonly ["featureQuery", "fileOpener", "routing", "selection", "suggestions"]
```

Source: [packages/core/src/contracts/portRegistry.ts:73](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/contracts/portRegistry.ts#L73)
