class ActionCable::Server::Broadcasting::Broadcaster

def broadcast(message)

def broadcast(message)
  server.logger.debug "[ActionCable] Broadcasting to #{broadcasting}: #{message.inspect}"
  payload = { broadcasting: broadcasting, message: message, coder: coder }
  ActiveSupport::Notifications.instrument("broadcast.action_cable", payload) do
    encoded = coder ? coder.encode(message) : message
    server.pubsub.broadcast broadcasting, encoded
  end
end

def initialize(server, broadcasting, coder:)

def initialize(server, broadcasting, coder:)
  @server, @broadcasting, @coder = server, broadcasting, coder
end