[Feature Request] let ActionCable to broadcast to every but yourself

23 views
Skip to first unread message

udry

unread,
Oct 15, 2016, 11:22:58 AM10/15/16
to Ruby on Rails: Core
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
Reply all
Reply to author
Forward
0 new messages