Recipients are required for every publish. EnSync uses targeted delivery to ensure multi-tenant data isolation—you specify exactly which partners receive each event.
Usage
- Node.js
- Python
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Send events to one or multiple partners
await client.publish(
"order/created",
["partner-app-id"],
{ orderId: "123", amount: 5000 }
);
await client.publish(
"order/created",
["partner-app-id"],
{"order_id": "123", "amount": 5000}
)
| Parameter | Type | Required | Description |
|---|---|---|---|
eventName | string | Yes | Event path (e.g., order/created) |
recipients | string[] | Yes | Array of partner appIds |
payload | object | Yes | Event data (JSON-serializable) |