Faye to ActionCable: broadcasting modernization #1

Merged
bterkuile merged 16 commits from feat/review-improve-and-document-the-broadcasting-model into master 2026-05-17 21:23:37 +02:00
Showing only changes of commit bdd1d248db - Show all commits
+5 -1
View File
@@ -30,8 +30,12 @@ module Mozo
data = message[:data] || message['data']
remapped = remap_channel(channel)
return unless remapped
unless remapped
Rails.logger.warn("[ACTION_CABLE] broadcast skipped: unknown channel #{channel}")
return
end
Rails.logger.debug("[ACTION_CABLE] broadcasting to #{remapped}: #{data.inspect}")
::ActionCable.server.broadcast(remapped, data)
rescue => e
Rails.logger.error("[ACTION_CABLE][ERROR] #{e.message}")