module
ActionCable::Channel::Callbacks::ClassMethods
Methods
- A
- B
- O
Public instance methods
Also aliased as:
on_subscribe.
Source code GitHub
# File actioncable/lib/action_cable/channel/callbacks.rb, line 37
def after_subscribe(*methods, &block)
set_callback(:subscribe, :after, *methods, &block)
end
Also aliased as:
on_unsubscribe.
Source code GitHub
# File actioncable/lib/action_cable/channel/callbacks.rb, line 46
def after_unsubscribe(*methods, &block)
set_callback(:unsubscribe, :after, *methods, &block)
end
Source code GitHub
# File actioncable/lib/action_cable/channel/callbacks.rb, line 33
def before_subscribe(*methods, &block)
set_callback(:subscribe, :before, *methods, &block)
end
Source code GitHub
# File actioncable/lib/action_cable/channel/callbacks.rb, line 42
def before_unsubscribe(*methods, &block)
set_callback(:unsubscribe, :before, *methods, &block)
end
Definition files