ActionCable::Channel::Callbacks Ruby on Rails 5.1.2 Module ActionCable::Channel::Callbacks actioncable/lib/action_cable/channel/callbacks.rb Methods A after_subscribe, after_unsubscribe B before_subscribe, before_unsubscribe Included Modules ActiveSupport::Callbacks Instance Public methods after_subscribe(*methods, &block) Link Source: show | on GitHub # File actioncable/lib/action_cable/channel/callbacks.rb, line 19 def after_subscribe(*methods, &block) set_callback(:subscribe, :after, *methods, &block) end after_unsubscribe(*methods, &block) Link Source: show | on GitHub # File actioncable/lib/action_cable/channel/callbacks.rb, line 28 def after_unsubscribe(*methods, &block) set_callback(:unsubscribe, :after, *methods, &block) end before_subscribe(*methods, &block) Link Source: show | on GitHub # File actioncable/lib/action_cable/channel/callbacks.rb, line 15 def before_subscribe(*methods, &block) set_callback(:subscribe, :before, *methods, &block) end before_unsubscribe(*methods, &block) Link Source: show | on GitHub # File actioncable/lib/action_cable/channel/callbacks.rb, line 24 def before_unsubscribe(*methods, &block) set_callback(:unsubscribe, :before, *methods, &block) end