instance method
subscribed
Ruby on Rails 6.1.7.10
Since v5.2.8.1 PrivateSignature
subscribed()
Called once a consumer has become a subscriber of the channel. Usually the place to set up any streams you want this channel to be sending to the subscriber.
Source
# File actioncable/lib/action_cable/channel/base.rb, line 199
def subscribed # :doc:
# Override in subclasses
end
Defined in actioncable/lib/action_cable/channel/base.rb line 199
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Channel::Base