Podcast Lookup

Disabling ActionCable for Unauthenticated Users

GoRails Screencasts

  • July 11, 2016
  • 9 min
Episode page

About this episode

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.