f02d422b6a
* Move Pusher Calls to sidekiq * CR changes Co-authored-by: Sojan Jose <sojan@pepalo.com>
9 lines
230 B
Ruby
9 lines
230 B
Ruby
class ActionCableBroadcastJob < ApplicationJob
|
|
queue_as :default
|
|
|
|
def perform(members, event_name, data)
|
|
members.each do |member|
|
|
ActionCable.server.broadcast(member, event: event_name, data: data)
|
|
end
|
|
end
|
|
end
|