instance method perform

Ruby on Rails 7.1.6

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

perform(action, data = {})

Perform action on a channel.

NOTE: Must be subscribed.

Parameters

action req
data opt = {}
Source
# File actioncable/lib/action_cable/channel/test_case.rb, line 261
        def perform(action, data = {})
          check_subscribed!
          subscription.perform_action(data.stringify_keys.merge("action" => action.to_s))
        end

Defined in actioncable/lib/action_cable/channel/test_case.rb line 261 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionCable::Channel::TestCase::Behavior

Type at least 2 characters to search.

↑↓ navigate · open · esc close