📄️ Overview
LiveViewJS natively supports real-time, multi-player user experiences. This is because LiveViewJS (and Phoenix LiveView for that matter) are built on top of Pub/Sub primatives.
📄️ Example Pub/Sub LiveView
We're going to extend our counter example from learning the LiveView API to use Pub/Sub which will make it a real-time, multi-player counter. Here is the code with the Pub/Sub changes highlighted: