skip to content
$worker

pubsub

v0.21.5

Topic-based publish/subscribe messaging — registers the `subscribe` trigger type and the `publish` function.

iiiverified
434 installs19 in 7d2 today
install
$iii trigger compose::add worker=pubsub@0.21.5
binarylicense: Apache-2.0eventsmessagingpubsubtopics
  • macOS: arm64
  • Linux: arm64 · armv7 · x64
  • Windows: arm64 · x64

exact versions are immutable; binary and bundle artifacts are digest-pinned.

functions

2

publish

function

Publishes an event

request
  • dataunknownrequired

    JSON payload delivered to each subscriber.

  • topicstringrequired

    Topic to publish to. Subscribers registered for this topic receive the event.

response
valuenull

pubsub::on-config-change

function

Internal: reload pubsub configuration from the authoritative store on change.

request
empty object
response
  • okbooleanrequired

triggers

1

subscribe

trigger

Subscribe to a topic

invocation
  • condition_function_idstring

    Condition function ID accepted for schema parity with the builtin trigger; never evaluated.

  • topicstringrequired

    Topic to subscribe to

return
valueunknown