In this episode, I show you how to create custom Turbo Stream responses from controllers and custom broadcasts over the wire using Action Cable. This really unlocks the power of Hotwire, and composing these together will help you build truly interactive applications easily!

🚨 Just a heads up, when taking something like this into production, remember to put the current users ID, or the ID of the payment into the turbo_stream_from channel name, to make sure you're only broadcasting the info to the specific user.

Discussion (0)

To comment you need to sign up for a free account or sign in.

Unlock 7 Hotwire tricks every Rails dev should know ⚡️

Level up your Rails skills with 7 powerful Turbo techniques in my free Hotwire Cheatsheet. Subscribe for updates on new videos, courses & more — no spam, just gems.