instance method
subscribe_to_channel
Ruby on Rails 7.2.3
Since v5.2.8.1Signature
subscribe_to_channel()
This method is called after subscription has been added to the connection and confirms or rejects the subscription.
Source
# File actioncable/lib/action_cable/channel/base.rb, line 192
def subscribe_to_channel
run_callbacks :subscribe do
subscribed
end
reject_subscription if subscription_rejected?
ensure_confirmation_sent
end
Defined in actioncable/lib/action_cable/channel/base.rb line 192
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Channel::Base