Disabling ActionCable for Unauthenticated Users

Published: July 11, 2016, 4:45 p.m.

To only have ActionCable's JS connect for logged in users, we can setup our Javascript to know when a user is authenticated or not, and have our websocket try to connect accordingly.