We have a method like this:
ActionCable.server.broadcast “some_channel”, message: “blah-blah”
``
But in this way the message will be sent to all the subscribed users, including the current user.
Can’t we have one like ActionCable.server.broadcast_to_others(channel, body)
``
which broadcasts to everybody but himself, or
ActionCable.server.broadcast_except(subscriber, channel, body)
``
or some method?
I’ve tried to look at the source, but ActionCable holds the subscribers as an Array so i was hard to work with it…
thanks,
udry