Class: Turbo::Streams::BroadcastStreamJob

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

Instance Method Summary collapse

Instance Method Details

#perform(stream, content:) ⇒ Object



4
5
6
# File 'app/jobs/turbo/streams/broadcast_stream_job.rb', line 4

def perform(stream, content:)
  Turbo::StreamsChannel.broadcast_stream_to(stream, content: content)
end