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..


You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to