Methods

Instance Public methods

after_subscribe(*methods, &block)

Also aliased as: on_subscribe
📝 Source code
# File actioncable/lib/action_cable/channel/callbacks.rb, line 21
        def after_subscribe(*methods, &block)
          set_callback(:subscribe, :after, *methods, &block)
        end
🔎 See on GitHub

after_unsubscribe(*methods, &block)

Also aliased as: on_unsubscribe
📝 Source code
# File actioncable/lib/action_cable/channel/callbacks.rb, line 30
        def after_unsubscribe(*methods, &block)
          set_callback(:unsubscribe, :after, *methods, &block)
        end
🔎 See on GitHub

before_subscribe(*methods, &block)

📝 Source code
# File actioncable/lib/action_cable/channel/callbacks.rb, line 17
        def before_subscribe(*methods, &block)
          set_callback(:subscribe, :before, *methods, &block)
        end
🔎 See on GitHub

before_unsubscribe(*methods, &block)

📝 Source code
# File actioncable/lib/action_cable/channel/callbacks.rb, line 26
        def before_unsubscribe(*methods, &block)
          set_callback(:unsubscribe, :before, *methods, &block)
        end
🔎 See on GitHub

on_subscribe(*methods, &block)

Alias for: after_subscribe

on_unsubscribe(*methods, &block)

Alias for: after_unsubscribe