Skip to content

Documentation


Documentation / @u-net/server / OfficialMessagingClientOptions

Interface: OfficialMessagingClientOptions ​

Defined in: index.ts:148

Properties ​

automationKey ​

automationKey: string

Defined in: index.ts:152


controlPlaneUrl ​

controlPlaneUrl: string

Defined in: index.ts:149


fetch? ​

optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: index.ts:158

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

URL | RequestInfo

init? ​

RequestInit

Returns ​

Promise<Response>

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

string | URL | Request

init? ​

RequestInit

Returns ​

Promise<Response>


messagingBaseUrl ​

messagingBaseUrl: string

Defined in: index.ts:150


recipientResolver ​

recipientResolver: (scopedUserId) => Promise<OfficialMessagingRecipient | undefined>

Defined in: index.ts:157

Resolves provider-owned recipient state. This function runs only on the provider server; scopedUserId is never sent to U-net infrastructure.

Parameters ​

scopedUserId ​

string

Returns ​

Promise<OfficialMessagingRecipient | undefined>


serviceId ​

serviceId: string

Defined in: index.ts:151