# PublishDone

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

Defined in: relay-sdks/ts/packages/moq-core/dist/protocol/session.d.ts:71

PUBLISH_DONE: the publisher ended a subscription.

## Properties

### reason

```ts
reason: string;
```

Defined in: relay-sdks/ts/packages/moq-core/dist/protocol/session.d.ts:77

Reason phrase; empty when the publisher gave none.

***

### statusCode

```ts
statusCode: number;
```

Defined in: relay-sdks/ts/packages/moq-core/dist/protocol/session.d.ts:73

A [@caprid/moq-core!index.PUBLISH\_DONE\_STATUS](https://www.caprid.com/docs/reference/typescript/caprid/moq-core/index/variables/publish_done_status/) value.

***

### streamCount

```ts
streamCount: number | undefined;
```

Defined in: relay-sdks/ts/packages/moq-core/dist/protocol/session.d.ts:75

Data streams the publisher opened; `undefined` when it could not count them (§9.9).
