instance method
broadcast_to
Ruby on Rails 7.1.6
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 16
def broadcast_to(model, message)
ActionCable.server.broadcast(broadcasting_for(model), message)
end
Defined in actioncable/lib/action_cable/channel/broadcasting.rb line 16
· View on GitHub
· Improve this page
· Find usages on GitHub