instance method
remove_subscriber
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
remove_subscriber(channel, subscriber)
No documentation comment.
Parameters
-
channelreq -
subscriberreq
Source
# 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
Defined in actioncable/lib/action_cable/subscription_adapter/subscriber_map.rb line 25
· View on GitHub
· Improve this page
· Find usages on GitHub