跳转到内容
Developer Preview — APIs and language features may change before 1.0

subscribes

此内容尚不支持你的语言。

subscribes

Surface: listen for named events (pub/sub ingress; pairs with publish)

Children

Translations

  • es: se suscribesuscribe
  • fr: souscrit
  • en: subscribes
  • de: abonniert
  • ja: 購読
  • zh: 订阅
  • ko: 구독

Example — Reaching the outside world

One machine reachable many ways: a web address, notifications, an AI-tool connection, a phone shortcut, a widget — with access rules on each.

machine status_board
accepts
question as text
responds with
status as text
expresses
api
path: "/status"
method: "GET"
available to: team
requires auth: oauth
rate limit: 100
webhook
path: "/hooks/status"
websocket
path: "/ws/status"
mcp
name: "status_tool"
a2a
name: "status_agent"
page
view
theme: "light"
command refresh
shortcut phrases: ["Check status"]
widget
kind: "small"
subscribes
on "status.changed"
compute bump
{status: "changed"}
implements
compute answer
{status: "ok"}