# Disabling ActionCable for Unauthenticated Users

> Episode of [GoRails Screencasts](https://podistic.com/podcast/gorails-screencasts.md) · Published July 11, 2016 · Duration 8:35

- **Listen on Podistic:** https://podistic.com/episode/disabling-actioncable-for-unauthenticated-users
- **Video:** https://gorails.com/episodes/disabling-actioncable-for-unauthenticated-users/download (video/mp4)

## 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.
