...
Any ruleset wishing to create the subscription signals the CloudOS to do so by raising the system:subscribe
event. This is most often done in a rule postlude as shown in the following example:
Code Block | ||||
---|---|---|---|---|
| ||||
fired {
raise cloudos event subscribe
with channelName = "Coworkers Bob+Ted"
and namespace = "MyFriends"
and relationship = "friend-friend"
and targetChannel = "3f15b820-fa7f-012f-4c6e-00163ebccdcd"
and _api = "sky";
} |
The CloudOS service raises the cloudos:subscriptionRequestAdded
to the target originating cloud:
Domain | cloudos |
---|---|
Type | subscriptionRequestAdded |
Attributes | targetChannel, backChannel, namespace, relationship, channelName |
The backChannel
attribute contains an ECI for the originating cloud that the CloudOS service has created and will pass to the target cloud.
...