David Kimura PRO said about 2 years ago on Real Time Updates with ActionCable :
  it's using Rails 6. however, you should be able to do the same in Rails 5 with little to no changes. Some of the folder structuring may be different if you've not moved the javascript assets out of sprokets. However, the concepts are the same.