...
The final step is that a rule selecting on wrangler/inbound_pending_subscription_added
in each of the thing picos will complete the subscription process.
Initiating subscriptions by direct request
Rather than having a third party initiate a subscription using an introduction, a pico can directly request a subscription. In this case, rather than use event:send
, the pico would raise
the event to itself, in the postlude block of one of its rules.
Code Block |
---|
raise wrangler event "subscription"
with name = "thing1"
name_space = "mischief"
my_role = "controller"
subscriber_role = "thing"
channel_type = "subscription"
subscriber_eci = thing1 |
As in the case of introductions, the other pico must have a rule selecting on wrangler/inbound_pending_subscription_added
which will complete the subscription process by raising the wrangler/
pending_subscription_approval
event.