@activitypods/synchronizer 中文文档教程
Synchronizer App
用于通知对象更新的 ActivityPods 应用。
当一个监视对象更新时,自动发送一个活动给有权查看该对象的参与者。
Action
watch
观看一种新型物体。
Parameters
Property | Type | Default | Description |
---|---|---|---|
type | String | required | The 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
Property | Type | Default | Description |
---|---|---|---|
type | String | required | The 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