...
Code Block | ||||
---|---|---|---|---|
| ||||
fired { raise cloudos event unsubscribe with eventChannel = "3f15b820-7aff-012f-4c6e-00163ebcfddfd" and _api = "sky"; } |
The CloudOS service in both the originating and target clouds raises the cloudos:subscriptionRemoved
event so that rulesets within the respective clouds can take any appropriate action:
Domain | cloudos |
---|---|
Type | subscriptionRemoved |
Attributes | eventChannel, backChannel, namespace, relationship, channelName |
The following rule is selected when the cloudos:CloudOS_subscriptionRemoved
event is raised:
Code Block | ||||
---|---|---|---|---|
| ||||
rule receive_subscriptionRemoved {
select when cloudos subscriptionRemoved
namespace re/MyFriends/
channelName re/Coworkers Bob+Ted/
relationship re/friend-friend/
...
} |
- The cloudos:unsubscribe event is raised into the Originating personal cloud. Do note that it is also possible to raised the cloudos:unsubscribe event in the Target personal cloud as well.
- CloudOS raises the cloudos:subscriptionRemoved event within the Originating personal cloud.
- CloudOS raises an event over the eventChannel to the Target personal cloud to indicate that the subscription has been removed.
- Within the Target personal cloud the cloudos:subscriptionRemoved event is raised.
Functions
The CloudOS service provides the following functions. In order to use these functions, a ruleset must include the CloudOS service ruleset as a module:
...