Methods
Instance Public methods
broadcast_to(model, message) Link
Broadcast a hash to a unique broadcasting for this model
in this channel.
broadcasting_for(model) Link
Returns a unique broadcasting identifier for this model
in this channel:
CommentsChannel.broadcasting_for("all") # => "comments:all"
You can pass any object as a target (e.g. Active Record model), and it would be serialized into a string under the hood.