DeliveryTrackingServiceConfig
Defined in: packages/messaging/src/delivery-tracking/service.ts:201
Properties
섹션 제목: “Properties”apiFailover?
섹션 제목: “apiFailover?”
optionalapiFailover?:DeliveryTrackingApiFailoverConfig
Defined in: packages/messaging/src/delivery-tracking/service.ts:205
onStatusChange?
섹션 제목: “onStatusChange?”
optionalonStatusChange?: (change) =>void|Promise<void>
Defined in: packages/messaging/src/delivery-tracking/service.ts:220
Called for each record a poll stored with a different status, with the
record as stored, after the poll finishes: for example, to notify a
webhook when a message is delivered or fails. Calls run one at a time,
in the order changes were stored, each with its own copy of the record;
runOnce() describes the one exception, in runtimes without
AsyncLocalStorage. It does not stop polling if it throws.
Delivery is best effort: a change whose callback throws is not retried, and one stored just before the process stops is not reported, so reconcile with the stored records when none may be missed. Services polling the same store can also each report the same change, so make it idempotent, for example by message id and status.
Parameters
섹션 제목: “Parameters”change
섹션 제목: “change”Returns
섹션 제목: “Returns”void | Promise<void>
onStatusChangeError?
섹션 제목: “onStatusChangeError?”
optionalonStatusChangeError?: (error,change) =>void|Promise<void>
Defined in: packages/messaging/src/delivery-tracking/service.ts:225
Receives what onStatusChange throws. Without it, or when it throws
too, the error is written to console.error.
Parameters
섹션 제목: “Parameters”error
섹션 제목: “error”unknown
change
섹션 제목: “change”Returns
섹션 제목: “Returns”void | Promise<void>
polling?
섹션 제목: “polling?”
optionalpolling?:Partial<DeliveryTrackingPollingConfig>
Defined in: packages/messaging/src/delivery-tracking/service.ts:204
providers
섹션 제목: “providers”providers:
Provider[]
Defined in: packages/messaging/src/delivery-tracking/service.ts:202
store?
섹션 제목: “store?”
optionalstore?:DeliveryTrackingStore
Defined in: packages/messaging/src/delivery-tracking/service.ts:203