instance method broadcast_to

Ruby on Rails 5.0.7.2

Since v5.0.7.2

Available in: v5.0.7.2 v5.1.7 v7.2.3.2 v8.0.5.1 v8.1.3.1 edge

Signature

broadcast_to(model, message)

Broadcast a hash to a unique broadcasting for this model in this channel.

Parameters

model req
message req
Source
# File actioncable/lib/action_cable/channel/broadcasting.rb, line 12
        def broadcast_to(model, message)
          ActionCable.server.broadcast(broadcasting_for([ channel_name, model ]), message)
        end

Defined in actioncable/lib/action_cable/channel/broadcasting.rb line 12 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Channel::Broadcasting

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close