> ## Documentation Index
> Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Pub/Sub commands

> Commands for publishing messages and managing channel subscriptions.

> **[PSUBSCRIBE](/docs/redis/commands/pub-sub/psubscribe)**
>
> Subscribe to pattern channels

> **[PUBLISH](/docs/redis/commands/pub-sub/publish)**
>
> Publish message to channel

> **[PUBSUB](/docs/redis/commands/pub-sub/pubsub)**
>
> Inspect pub/sub state

> **[PUNSUBSCRIBE](/docs/redis/commands/pub-sub/punsubscribe)**
>
> Unsubscribe from patterns

> **[SUBSCRIBE](/docs/redis/commands/pub-sub/subscribe)**
>
> Subscribe to channels

> **[UNSUBSCRIBE](/docs/redis/commands/pub-sub/unsubscribe)**
>
> Unsubscribe from channels


## Related topics

- [Compare](/docs/qstash/overall/compare.md)
- [Overview](/docs/redis/sdks/ts/commands/overview.md)
- [PUBSUB](/docs/redis/commands/pub-sub/pubsub.md)
- [SUBSCRIBE](/docs/redis/commands/pub-sub/subscribe.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.