Compare commits

...

1 commit

Author SHA1 Message Date
Sojan
6a1dbf4aa9 chore: Debug action cable 2022-08-03 16:51:32 +02:00

View file

@ -2,8 +2,12 @@ class ActionCableBroadcastJob < ApplicationJob
queue_as :default
def perform(members, event_name, data)
logger.info "Processing ActionCableBroadcastJob"
logger.info "Available Channels: #{Redis.new.pubsub("channels", "*action_cable:*")}"
members.each do |member|
ActionCable.server.broadcast(member, { event: event_name, data: data })
logger.info "Broadcasting to member: #{member}"
result = ActionCable.server.broadcast(member, { event: event_name, data: data })
logger.info "Broadcast result: #{result}"
end
end
end