module ActionCable::Server::Broadcasting

def broadcast(broadcasting, message, coder: ActiveSupport::JSON)

Broadcast a hash directly to a named broadcasting. This will later be JSON encoded.
def broadcast(broadcasting, message, coder: ActiveSupport::JSON)
  broadcaster_for(broadcasting, coder: coder).broadcast(message)
end

def broadcaster_for(broadcasting, coder: ActiveSupport::JSON)

may need multiple spots to transmit to a specific broadcasting over and over.
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