Flowdock
method

broadcast

Importance_0
v5.1.7 - 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 34
      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.