method
remove_subscriber
v7.1.3.2 -
Show latest stable
- Class:
ActionCable::SubscriptionAdapter::SubscriberMap
remove_subscriber(channel, subscriber)public
No documentation available.
# File actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb, line 25
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