connectRelayPublisher
function connectRelayPublisher(options): Promise<RelayPublisher>;Defined in: relay-sdks/ts/src/publish.ts:240
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
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
ConnectRelayPublisherOptions |
Returns
Section titled “Returns”Promise<RelayPublisher>