publish
Publishes an event
- dataunknownrequired
JSON payload delivered to each subscriber.
- topicstringrequired
Topic to publish to. Subscribers registered for this topic receive the event.
pubsub is deprecated (pubsub) and will be removed in an upcoming release. Behavior is unchanged for now. Migration guide: https://github.com/iii-hq/iii/blob/6901a589dd39d9c34f9d5b6bd8bc82170ee21548/docs/next/upgrading/migrate-from-streams.mdx — Topic-based publish/subscribe messaging; registers the `subscribe` trigger type and the `publish` function.
pubsub is deprecated and will be removed in an upcoming release. Behavior is unchanged for now. For fan-out notifications, have your worker register its own trigger type; when delivery must not be lost, use the queue worker (iii::durable::publish + durable:subscriber). Migration guide: https://iii.dev/docs/upgrading/migrate-from-streams
iii trigger compose::add worker=pubsub@0.21.3-rc.3Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.
Publishes an event
JSON payload delivered to each subscriber.
Topic to publish to. Subscribers registered for this topic receive the event.
Internal: reload pubsub configuration from the authoritative store on change.
Subscribe to a topic
Optional function ID to evaluate before invoking handler. Accepted for schema parity; the builtin never evaluated it and neither does this worker.
Topic to subscribe to
Find workers, kits and executables, or jump to a page.