Expand description
Telling a window that srv dropped events for it. A connection whose consumer falls behind
has events dropped from a full lane (backend::eventbus::LaneDrops); the window’s objects,
panes and streams then stay as stale as the last event it did get, until something
re-fetches them. This sends ws:eventsdropped straight to the socket (not through the full
lane) once the window is reading again, and the window re-fetches what it shows
(frontend/app/store/resync.ts).
Functions§
- drained 🔒
- Whether the egress loop has none of the window’s priority events left to send: none in the
lane and none already pulled out of it for fair ordering (
pending_priority). - events_
dropped_ 🔒frame - The frame that tells a window
droppedpriority events never reached it. - report_
when_ 🔒drained - Tell the window about any events dropped since it last heard, once everything queued ahead of
the report has been sent: the window re-fetches on hearing it, and a queued older update that
arrived after the re-fetch could put back an object the re-fetch had just cleared. Returns
trueif the send failed (the caller should end the connection).