Class: Turbo::Streams::BroadcastJob

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

Overview

The job that powers the broadcast_render_later_to available in Turbo::Streams::Broadcasts for rendering turbo stream templates.

Instance Method Summary collapse

Instance Method Details

#perform(stream, **rendering) ⇒ Object



6
7
8
# File 'app/jobs/turbo/streams/broadcast_job.rb', line 6

def perform(stream, **rendering)
  Turbo::StreamsChannel.broadcast_render_to stream, **rendering
end