Class: Turbo::Streams::ActionBroadcastJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/turbo/streams/action_broadcast_job.rb

Overview

The job that powers all the broadcast_$action_later broadcasts available in Turbo::Streams::Broadcasts.

Instance Method Summary collapse

Instance Method Details

#perform(stream, action:, target:, **rendering) ⇒ Object



5
6
7
# File 'app/jobs/turbo/streams/action_broadcast_job.rb', line 5

def perform(stream, action:, target:, **rendering)
  Turbo::StreamsChannel.broadcast_action_to stream, action: action, target: target, **rendering
end