chore: Debug action cable
This commit is contained in:
parent
63b1013b45
commit
6a1dbf4aa9
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue