Method: ActionCable::SubscriptionAdapter::SubscriberMap#initialize

Defined in:
actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb

#initializeSubscriberMap

Returns a new instance of SubscriberMap.



6
7
8
9
# File 'actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb', line 6

def initialize
  @subscribers = Hash.new { |h, k| h[k] = [] }
  @sync = Mutex.new
end