chore: log params for update_presence

This commit is contained in:
Vishnu Narayanan
2024-11-14 22:19:25 +05:30
parent 11cf49db43
commit e5ecb84277
+5 -1
View File
@@ -2,7 +2,7 @@ class RoomChannel < ApplicationCable::Channel
def subscribed
# TODO: should we only do ensure stream if current account is present?
# for now going ahead with guard clauses in update_subscription and broadcast_presence
log_params
ensure_stream
current_user
current_account
@@ -10,6 +10,10 @@ class RoomChannel < ApplicationCable::Channel
broadcast_presence
end
def log_params
Rails.logger.info("update_presence: #{params.inspect}")
end
def update_presence
update_subscription
broadcast_presence