Use this rule to add to the list of subscriptions.
Suppose that you have the following code in your Backend.elm file:
Backend.elm
subscriptions = Sub.batch [ foo, bar ]
and that you want to add baz to the list. To do this, say
baz
Install.Subscription.config "Backend" [ "baz" ] |> Install.subscription
The result is
subscriptions = Sub.batch [ foo, bar, baz ]
Configuration for rule.
Suppose that you have the following code in your
Backend.elmfile:and that you want to add
bazto the list. To do this, sayThe result is