@devries-cameron20 / composio-1 / commits / e55b642f3
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

docs: keep trigger subscription sample buildable

jkomyno committed Sep 16, 2026 at 15:22 UTC e55b642f3c7c5fc324f30758442038073422355f
1 file changed +5
docs/content/docs/setting-up-triggers/subscribing-to-events.mdx
+5
@@ -55,6 +55,11 @@ Filter the stream by `triggerId`, `triggerSlug`, `connectedAccountId`, `toolkits
55 Subscription failures (for example a rejected auth request) do not reject the `subscribe()` promise — Pusher reports them asynchronously after it resolves. Pass an optional third callback to react to them programmatically:
56
57 ```typescript
58 +// @noErrors
59 +import { Composio } from '@composio/core';
60 +
61 +const composio = new Composio();
62 +// ---cut---
63 await composio.triggers.subscribe(
64 data => {
65 console.log('Event received:', data);