skip to content
$worker

pubsub

v0.21.1

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

iiiverified
359 installs53 in 7d0 today
install
$iii worker add pubsub@0.21.1
  • macOS: arm64 · x64
  • Linux: arm64 · armv7 · x64
  • Windows: arm64 · x64 · x86

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

    Optional function ID to evaluate before invoking handler. Accepted for schema parity; the builtin never evaluated it and neither does this worker.

  • topicstringrequired

    Topic to subscribe to

return
valueunknown