O'Reilly logo

Learn Rails 5.2: Accelerated Web Development with Ruby on Rails by Stefan Wintermeyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Stefan Wintermeyer 2018
Stefan WintermeyerLearn Rails 5.2https://doi.org/10.1007/978-1-4842-3489-1_15

15. Action Cable

Stefan Wintermeyer
(1)
Bochum, Germany
 
Most modern web pages are not just static. They often get updates from the server without interaction from the user. For example, your Twitter or Gmail browser client will display new tweets or e-mails without you reloading the page. The server pushes the information via WebSockets ( https://en.wikipedia.org/wiki/WebSocket ), and Action Cable provides the tools you need to use these mechanisms without diving deep into the technical aspects of WebSockets.
The use of Action Cable always includes JavaScript, and this book is about Ruby and Ruby on Rails. So, I will only show you a minimal Hello ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required