Class: Superglue::Streams::BroadcastStreamJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- Superglue::Streams::BroadcastStreamJob
- Defined in:
- app/jobs/superglue/streams/broadcast_stream_job.rb
Overview
This file was ported from the amazing folks at turbo-rails You can find its MIT License here: github.com/hotwired/turbo-rails/blob/main/MIT-LICENSE
Instance Method Summary collapse
Instance Method Details
#perform(stream, content:) ⇒ Object
7 8 9 |
# File 'app/jobs/superglue/streams/broadcast_stream_job.rb', line 7 def perform(stream, content:) Superglue::StreamsChannel.broadcast_stream_to(stream, content: content) end |