Skip to content

PodActivitiesWatcherService

This service, automatically created by the AppService with the key pod-activities-watcher, allows you to watch for certain type of activities, in the inbox or outbox of the Pod owner. See this page for usage examples.

Actions

The following service actions are available.

watch

Create a collection in the /as/collection container, and attach it to the provided resource.

Parameters

PropertyTypeDescription
matcherObjectActivity template to compare with the emitted or received activities
boxTypesArrayAn array with “inbox”, “outbox” or both. What box to listen to.
actionNameStringMoleculer action to call when there is a match
keyStringA custom key that will be passed back to your action