Cloudflare Worker integration

Open in

Cloudflare Worker integrations enable Cloudflare's Edge Network to distribute your JavaScript-based functions when an event occurs in Ably.

Create a Cloudflare Worker integration

On the Integrations page of your app:

  1. Click New Integration Rule.
  2. Choose Webhook.
  3. Choose Cloudflare Workers.
  4. Configure the Cloudflare Worker settings.
  5. Click Create.

Settings

The following settings are available when creating a Cloudflare Worker integration:

SettingDescription
URLThe URL of the Cloudflare Worker to POST a summary of events to.
HeadersAllows the inclusion of additional information in key-value format.
Request ModeChoose between Single Request or Batch Request.
Event typesSpecifies the event types being sent to Cloudflare Workers.
Channel filterFilters the source channels based on a regular expression.
EncodingSpecifies the encoding format of messages. Either JSON or MsgPack.
Sign with keyPayloads will be signed with an API key so they can be validated by your servers. Only available when Request Mode is set to Batched.