instance method
broadcast_to
Ruby on Rails 7.0.10
Since v5.2.8.1Signature
broadcast_to(model, message)
Broadcast a hash to a unique broadcasting for this model in this channel.
Parameters
-
modelreq -
messagereq
Source
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 14
def broadcast_to(model, message)
ActionCable.server.broadcast(broadcasting_for(model), message)
end
Defined in actioncable/lib/action_cable/channel/broadcasting.rb line 14
· View on GitHub
· Improve this page
· Find usages on GitHub