Skip to Content Skip to Search
v7.1.0
module ActionCable::Channel::Callbacks::ClassMethods
Methods
A
B
O

Public instance methods

after_subscribe(*methods, &block)

Permalink

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

after_unsubscribe(*methods, &block)

Permalink

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

before_subscribe(*methods, &block)

Permalink
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

before_unsubscribe(*methods, &block)

Permalink
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

on_subscribe(*methods, &block)

Permalink

Alias for: after_subscribe.

on_unsubscribe(*methods, &block)

Permalink

Alias for: after_unsubscribe.

Definition files