mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
Add tracking of delay to streaming API
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user