Author:
Source
An extract of a technique I’ve been running successfully to only render and broadcast payloads over ActionCable for users that are actively subscribed to the channel: https://blog.jamesbrooks.net/posts/enhanced-broadcasting-with-actioncable/