Disabling ActionCable for Unauthenticated Users episode artwork

EPISODE · Jul 11, 2016 · 8 MIN

Disabling ActionCable for Unauthenticated Users

from GoRails Screencasts · host Chris Oliver

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.

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.

NOW PLAYING

Disabling ActionCable for Unauthenticated Users

0:00 8:35

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

Polling for New Records

Jun 7, 2026 ·13m

Ten Years of Frontend

May 3, 2026 ·17m

Easter Eggs

Apr 5, 2026 ·3m

N+1 Driven Development

Apr 1, 2026 ·6m

Optimizations

Mar 1, 2026 ·19m

Claude Code

Feb 1, 2026 ·23m

Frequently Asked Questions

How long is this episode of GoRails Screencasts?

This episode is 8 minutes long.

When was this GoRails Screencasts episode published?

This episode was published on July 11, 2016.

What is this episode about?

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.

Can I download this GoRails Screencasts episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!