# `Commanded.PubSub.LocalPubSub`
[🔗](https://github.com/commanded/commanded/blob/v1.4.12/lib/commanded/pubsub/local_pubsub.ex#L1)

Local pub/sub adapter, restricted to a single node, using Elixir's `Registry`.

You can configure this adapter in your environment config file:

    # `config/config.exs`
    config :my_app, MyApp.Application, pubsub: :local

This adapter will be used by default when none is specified in config.

# `broadcast`

Broadcasts message on given topic.

# `child_spec`

Start a `Registry` for local pub/sub.

# `list`

List tracked terms and associated PIDs for a given topic.

# `subscribe`

Subscribes the caller to the topic.

# `track`

Track the current process under the given `topic`, uniquely identified by
`key`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
