module ActionCable::Server::Broadcasting
def broadcast(broadcasting, message, coder: ActiveSupport::JSON)
def broadcast(broadcasting, message, coder: ActiveSupport::JSON) broadcaster_for(broadcasting, coder: coder).broadcast(message) end
def broadcaster_for(broadcasting, coder: ActiveSupport::JSON)
Returns a broadcaster for a named broadcasting that can be reused. Useful when you have an object that
def broadcaster_for(broadcasting, coder: ActiveSupport::JSON) Broadcaster.new(self, String(broadcasting), coder: coder) end