instance method perform

Ruby on Rails edge

Since edge

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 249
        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 249 · View on GitHub · Improve this page · Find usages on GitHub

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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close