We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e374d3 commit d0e6442Copy full SHA for d0e6442
docs/sdk/triggerclient/instancemethods/sendevent.mdx
@@ -27,4 +27,29 @@ const event = client.sendEvent({
27
});
28
```
29
30
+```ts Send an event with an ID
31
+const event = client.sendEvent({
32
+ id: "e_1234567890", // You can use this to deduplicate events
33
+ name: "new.user",
34
+ payload: {
35
+ userId: "u_1234567890",
36
+ },
37
+});
38
+```
39
+
40
+```ts Send an event to be delivered later
41
+const event = client.sendEvent(
42
+ {
43
44
45
46
47
48
49
50
+ deliverAt: new Date("2023-12-01T00:00:00.000Z"),
51
+ }
52
+);
53
54
55
</RequestExample>
0 commit comments