...
Code Block | ||||
---|---|---|---|---|
| ||||
rule autoAccept { select when wrangler inbound_pending_subscription_added pre{ attributes = event:attrs().klog("subcription :"); } noop(); always{ raise wrangler event "pending_subscription_approval" attributes attributes; log info log("auto accepted subcription."); } } |
Warning | ||
---|---|---|
| ||
The preceding code shows a simple example of approving subscriptions automatically. This code, installed in a pico, would automatically subscribe to every pico that requests it. Production code should be more circumspect about what subscriptions it accepts. For example, a pico might automatically accept any subscription request from its parent. Or any subscription request that contains a specific password. |
...