# NamespaceEvent

URL: https://www.caprid.com/docs/reference/typescript/caprid/relay/index/interfaces/namespaceevent/

Defined in: [relay-sdks/ts/src/namespace-events.ts:14](https://github.com/caprids/relay-sdks/blob/main/ts/src/namespace-events.ts#L14)

One change in which namespaces under the prefix are announced.

## Properties

### namespace

```ts
namespace: string[];
```

Defined in: [relay-sdks/ts/src/namespace-events.ts:22](https://github.com/caprids/relay-sdks/blob/main/ts/src/namespace-events.ts#L22)

The full namespace: the prefix's fields followed by the rest, without splitting or joining.

***

### type

```ts
type: "announced" | "unannounced";
```

Defined in: [relay-sdks/ts/src/namespace-events.ts:20](https://github.com/caprids/relay-sdks/blob/main/ts/src/namespace-events.ts#L20)

`announced`: a publisher announced the namespace, or it was already announced when the request
was accepted. `unannounced`: its announce was withdrawn. Each namespace alternates between the
two; the relay's repeats are not passed on.
