DEV Community

Discussion on: Real-Time Partial Updates in Ruby on Rails using hotwire-rails

Collapse
mikerogers0 profile image
Mike Rogers ✈️ Author

If it uses websockets to update the page, does that mean you’re persisting a connection with every user at all times when they’re using the app

That's correct. It's a little expensive, but you'll be able to push down changes from the server the moment the stuff changes as opposed to having the user poll for changes from a JSON API.

The key win here is I can get the read-time updates, without having to write any JavaScript & worry about maintaining state.