1. Form submits
The Rails form creates a `ChatMessage` with Turbo enabled by default.
Hotwire Demo
Submit a message and Rails broadcasts HTML over Action Cable. Every browser subscribed to this room receives the new message without a full-page reload.
Live Room
The Rails form creates a `ChatMessage` with Turbo enabled by default.
`ChatMessage` broadcasts a Turbo Stream to `hotwire_chat_messages` after commit.
Every subscribed browser appends the message into `chat_messages` over WebSocket.