method

remove_subscriber

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: SubscriberMap
remove_subscriber(channel, subscriber) 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 23
      def remove_subscriber(channel, subscriber)
        @sync.synchronize do
          @subscribers[channel].delete(subscriber)

          if @subscribers[channel].empty?
            @subscribers.delete channel
            remove_channel channel
          end
        end
      end
Register or log in to add new notes.