I’ve implemented a very simple chat application and I would like to display how many people are connected to it. Also, this number should be updated upon new access (subscribed) and when user closes the tab (unsubscribed the channel).
Is there any way I can count how many subscribers have subscribed from a
turbo_stream without using
ActionCable adapter methods, i.e., agnostic of Redis/Async/etc. ?
I have a feeling I should be using
ActionCable methods as Turbo Stream descend from it, but I am not sure
Turbo::StreamsChannel.superclass => ActionCable::Channel::Base
Any feedback is welcomed!