# connectRelayPublisher

URL: https://www.caprid.com/docs/reference/typescript/caprid/relay/index/functions/connectrelaypublisher/

```ts
function connectRelayPublisher(options): Promise<RelayPublisher>;
```

Defined in: [relay-sdks/ts/src/publish.ts:240](https://github.com/caprids/relay-sdks/blob/main/ts/src/publish.ts#L240)

Open a dedicated Relay publisher connection. Subscribers use connectRelaySubscriber; this
initial publishing API does not share their physical transport. A relay must solicit the
namespace and subscribe upstream before data can flow.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `options` | [`ConnectRelayPublisherOptions`](https://www.caprid.com/docs/reference/typescript/caprid/relay/index/interfaces/connectrelaypublisheroptions/) |

## Returns

`Promise`\<[`RelayPublisher`](https://www.caprid.com/docs/reference/typescript/caprid/relay/index/interfaces/relaypublisher/)\>
