You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if the rails one has this. I tried searching and couldn't find it, but I feel like I should have an easy way to know exactly how many connects are open on a specific channel.
# no clue what this actually looks likeChatChannel.fetch_count("room:1") # => 35EventChannel.fetch_count("events:4") # => 42
The text was updated successfully, but these errors were encountered:
I remember when monitoring redis for rails actioncable, it uses an internal key as a control pubsub, so it can do some maintenance tasks (like disconnecting all connections for a give client), could take advantage of similar approach, but I'm not confident about how to use it
or maybe could use a redis key to inc/dec on conn/disconn and fetch this number? 🤔
Then elsewhere I have a loop that runs every minute asking what that count is. It would be so much nicer if I could just ask the channel how many are in there, and who they are. Then I wouldn't have to store that separately.
I'm not sure if the rails one has this. I tried searching and couldn't find it, but I feel like I should have an easy way to know exactly how many connects are open on a specific channel.
The text was updated successfully, but these errors were encountered: