$worker

pubsub

v0.1.2

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

  • macOS: arm64 · x64
  • Linux: arm64 · armv7 · x64
  • Windows: arm64 · x64 · x86

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