Monk::Live demo

Open this page in two tabs and press the button in one: the counter in the other updates by itself. The server pushes the new HTML over a WebSocket; there is no polling and no page JavaScript of your own.

Hits so far: 0

The pieces: live_topic in this view, the partial app/views/demo/_hits.erb, Monk::Live.patch in POST /demo/live/hit (app/routes/demo_live.rb), and the subscribe rule in config/live.rb.