Skip to content

createMemoryDedupe

createMemoryDedupe(options?): WebhookDedupe

Defined in: src/resources/webhook-dedupe.ts:41

Creates an in-memory WebhookDedupe with a time limit and a size cap.

The store lives in one process. Serverless instances and multi-process servers do not share it, so duplicates that reach a different instance are not caught; implement WebhookDedupe on a shared store for that.

MemoryDedupeOptions = {}

WebhookDedupe

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.