Keep same-second unread events and bound idle push connections

This commit is contained in:
GPT on behalf of DHH
2026-10-07 11:00:47 +02:00
parent 14a2f8f550
commit 27065ef489
7 changed files with 41 additions and 7 deletions
+1 -1
View File
@@ -22,6 +22,6 @@ class PresenceChannel < RoomChannel
end
def broadcast_read_room
ActionCable.server.broadcast "user_#{current_user.id}_reads", { room_id: membership.room_id, at: Time.current.to_fs(:epoch) }
ActionCable.server.broadcast "user_#{current_user.id}_reads", { room_id: membership.room_id, at: Time.current.to_f }
end
end