Method: ActionCable::Channel::Base#subscribe_to_channel
- Defined in:
- lib/action_cable/channel/base.rb
#subscribe_to_channel ⇒ Object
This method is called after subscription has been added to the connection and confirms or rejects the subscription.
191 192 193 194 195 196 197 198 |
# File 'lib/action_cable/channel/base.rb', line 191 def subscribe_to_channel run_callbacks :subscribe do subscribed end reject_subscription if subscription_rejected? ensure_confirmation_sent end |