about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-02-05 03:19:04 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-02-05 03:19:04 +0100
commitfb6aa7ad5ce79ae0738ebf1cada0e834c33b0ef2 (patch)
treec0835a1eecf0ba434eec8984d120d21ed8000c49 /app/lib
parent6cdcac1396e60286284fd8cbfe5c859050c696af (diff)
Add tracking of delay to streaming API
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/feed_manager.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb
index 028fc5218..7069026e3 100644
--- a/app/lib/feed_manager.rb
+++ b/app/lib/feed_manager.rb
@@ -30,6 +30,7 @@ class FeedManager
   end
 
   def broadcast(timeline_id, options = {})
+    options[:queued_at] = (Time.now.to_f * 1000.0).to_i
     ActionCable.server.broadcast("timeline:#{timeline_id}", options)
   end