# `PhoenixKit.Notifications.Events`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.164/lib/phoenix_kit/notifications/events.ex#L1)

PubSub topic helpers for the notifications feature.

Each recipient has their own topic so broadcasts don't fan out to unrelated
LiveViews. Topic shape: `"phoenix_kit:notifications:<user_uuid>"`.

Events sent to these topics:

  * `{:notification_created, %Notification{}}`
  * `{:notification_seen, %Notification{}}`
  * `{:notification_dismissed, %Notification{}}`

# `broadcast`

Broadcasts an event to a user's notification topic. Never raises.

# `subscribe`

Subscribes the calling process to a user's notification topic.

# `topic_for_user`

Returns the per-user PubSub topic.

# `unsubscribe`

Unsubscribes the calling process from a user's notification topic.

---

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