Class: ExpoTurbo::Rails::Streams::BroadcastJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/expo_turbo/rails/streams/broadcast_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(stream_name, content:) ⇒ Object



11
12
13
# File 'lib/expo_turbo/rails/streams/broadcast_job.rb', line 11

def perform(stream_name, content:)
  Streams.broadcast_to_stream(stream_name, content: content)
end