Class: Superglue::Streams::ActionBroadcastJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/superglue/streams/action_broadcast_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, action:, targets:, options: {}, **rendering) ⇒ Object



7
8
9
# File 'app/jobs/superglue/streams/action_broadcast_job.rb', line 7

def perform(stream, action:, targets:, options: {}, **rendering)
  Superglue::StreamsChannel.broadcast_action_to stream, action: action, targets: targets, options: options, **rendering
end