@activitypods/synchronizer 中文文档教程

发布于 3年前 浏览 9 更新于 3年前

Synchronizer App

用于通知对象更新的 ActivityPods 应用。

当一个监视对象更新时,自动发送一个活动给有权查看该对象的参与者。

Action

watch

观看一种新型物体。

Parameters
PropertyTypeDefaultDescription
typeStringrequiredThe type of resource we want to watch

Handled activities

Announce update

{
  "type": "Announce",
  "object": {
    "type": "Update",
    "object": {
      "type": "[WATCHED TYPES]"
    }
  }
}

Emitter's side effects

  • None

Recipients' side effects

  • The object cached in the recipients' PODs is refreshed

Synchronizer App

An ActivityPods app to notify of objects' updates.

When a watched object is updated, automatically send an activity to the actors who have the right to view this object.

Action

watch

Watch a new type of object.

Parameters
PropertyTypeDefaultDescription
typeStringrequiredThe type of resource we want to watch

Handled activities

Announce update

{
  "type": "Announce",
  "object": {
    "type": "Update",
    "object": {
      "type": "[WATCHED TYPES]"
    }
  }
}

Emitter's side effects

  • None

Recipients' side effects

  • The object cached in the recipients' PODs is refreshed
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文