Hi, in my Rails view I’m using turbo_stream_from
to subscribe to a turbo stream broadcast to display a list of patients:
<%= turbo_stream_from :all_patients_broadcast %>
I want this list to be updated when a new patient is created, so I call:
constly_method
Turbo::StreamsChannel.broadcast_update_to(:all_users_broadcast,...)
However, I want to run constly_method
only if there are any clients that are actually subscribed to :all_patients_broadcast at the moment. Is there any way to check that?