Skip to content

Documentation


Documentation / @u-net/server / OfficialMessagingClientOptions

Interface: OfficialMessagingClientOptions

Defined in: index.ts:135

Properties

automationKey

automationKey: string

Defined in: index.ts:139


controlPlaneUrl

controlPlaneUrl: string

Defined in: index.ts:136


fetch?

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

Defined in: index.ts:145

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:137


recipientResolver

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

Defined in: index.ts:144

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:138