# NamespaceEventOptions

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

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

Options for `namespaceEvents`: the prefix, the iterator's queue bound and its own cancellation.

## Extends

- [`SubscriptionEventOptions`](https://www.caprid.com/docs/reference/typescript/caprid/relay/index/interfaces/subscriptioneventoptions/)

## Properties

### capacity?

```ts
capacity?: number;
```

Defined in: [relay-sdks/ts/src/subscription-events.ts:26](https://github.com/caprids/relay-sdks/blob/main/ts/src/subscription-events.ts#L26)

Maximum queued events (including lifecycle events). Positive integer; default 64.

#### Inherited from

[`SubscriptionEventOptions`](https://www.caprid.com/docs/reference/typescript/caprid/relay/index/interfaces/subscriptioneventoptions/).[`capacity`](https://www.caprid.com/docs/reference/typescript/caprid/relay/index/interfaces/subscriptioneventoptions/#capacity)

***

### prefix

```ts
prefix: readonly string[];
```

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

Namespace prefix to discover, matched field by field. Same rules as a namespace.

***

### signal?

```ts
signal?: AbortSignal;
```

Defined in: [relay-sdks/ts/src/subscription-events.ts:28](https://github.com/caprids/relay-sdks/blob/main/ts/src/subscription-events.ts#L28)

Cancels only this subscription.

#### Inherited from

[`SubscriptionEventOptions`](https://www.caprid.com/docs/reference/typescript/caprid/relay/index/interfaces/subscriptioneventoptions/).[`signal`](https://www.caprid.com/docs/reference/typescript/caprid/relay/index/interfaces/subscriptioneventoptions/#signal)
