method

broadcast

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: SubscriberMap
broadcast(channel, message) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb, line 36
      def broadcast(channel, message)
        list = @sync.synchronize do
          return if !@subscribers.key?(channel)
          @subscribers[channel].dup
        end

        list.each do |subscriber|
          invoke_callback(subscriber, message)
        end
      end
Register or log in to add new notes.