Decorators
Retry
Retry failed sends with configurable backoff on any channel transport.
Retry failed sends with configurable backoff. Works with email, SMS, WhatsApp, and push transports.
The one rule
Authentication errors are not retried.
Configuration
maxAttempts, backoff, baseDelay, retryOn, and onRetry are optional.
Quick start
import { RetryTransport } from "sently/transports/retry";
import { TaqnyatSmsTransport } from "sently/transports/taqnyat-sms";
const transport = new RetryTransport(
new TaqnyatSmsTransport({ bearerToken: "...", sender: "MyBrand" }),
{ maxAttempts: 3 },
);import { createSmsSender } from "sently/sms";
const sms = createSmsSender({ transport });Troubleshooting
No. It delegates sends to the wrapped transport.