Changelog

6.0.2

6.0.1

6.0.0

5.0.3

5.0.2

5.0.1

5.0.0

4.3.0

4.2.0

4.1.1

4.1.0

# For the below examples `charge.id == 1` and `charge.merchant_slug == :johns_tackle_shop`.

# This will subscribe to a topic with the id given, ie: `App.Transactions/charges:1`
App.Transactions.subscribe_to_charge(charge.id)

# And to broadcast:
App.Transactions.broadcast_charges_insert(charge.id)
App.Transactions.broadcast_charges_change(charge.id)

# You can also subscribe to charges with a specific set of options
App.Transactions.subscribe_to_charges(tenant: charge.merchant_slug)
App.Transactions.subscribe_to_charges(tenant: charge.merchant_slug, prefix: "sandbox")

# This will publish a message of `{:changed, {:charges, 1}}` to `App.Transactions/charges:1` and `App.Transactions/charges/merchant_slug:johns_tackle_shop`
App.Transactions.broadcast_charges_change(charge.id, tenant: charge.merchant_slug, prefix: "sandbox")

4.0.1

4.0.0

3.1.0

3.0.0

2.3.1

2.3.0

2.2.1

2.2.0

2.1.0

2.0.0

1.3.0

1.2.0

1.1.1

1.1.0

1.0.0