instance method
subscribe_to_channel
Ruby on Rails edge
Since v5.0.7.2Signature
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 200
def subscribe_to_channel
run_callbacks :subscribe do
subscribed unless subscription_rejected?
end
reject_subscription if subscription_rejected?
ensure_confirmation_sent
end
Defined in actioncable/lib/action_cable/channel/base.rb line 200
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Channel::Base