A common example of what PubSub enables is implementing a simple chat system. Each chat participant can subscribe to messages on the
chat topic, and when any participant publishes a
chat message, all subscribers will receive a copy of that message.
A working example of PubSub is available at