Real-Time Rails: Implementing WebSockets in Rails 5 with Action Cable

It's been one year since Action Cable debuted at RailsConf 2015, and Sophie DeBenedetto is here to answer the question in the minds of many developers: what is it really like to implement "the highlight of Rails 5"? Sophie is a web developer and an instructor at the Flatiron School. Her first love is Ruby on Rails, although she has developed projects with and written about Rails, Ember and Phoenix.

Recent years have seen the rise of "the real-time web." Web apps we use every day rely on real-time features—the sort of features that let you see new posts magically appearing at the top of your feeds without having to lift a finger.

While we may take those features...

Read more →

WebSockets now Generally Available

WebSocket support was introduced as a Labs feature last year, and we went through extensive testing and a number of technical iterations to improve performance and to provide a predictable compliance target. Thanks to great interaction with the community and early feature users, we now have a fast and robust solution available in production.

Why WebSockets

WebSockets provide bi-directional and full-duplex channels, allowing you to create applications with support for streaming, flexible protocols, and persistent connections.

Getting Started with New Apps

If you are creating a new application on Heroku, there is no need to enable WebSockets or to configure your application to use the...

Read more →

Browse the blog archives, subscribe to the full-text feed, or visit the engineering blog.