Skip to main content

events

Function events 

Source
pub async fn events<T: Transport + Send + Sync + 'static>(
    __arg0: State<Arc<Ui<T>>>,
    __arg1: Extension<Arc<Relays>>,
    follow: Result<Query<Follow>, QueryRejection>,
) -> Response
Expand description

GET /events: one browser’s stream of every deployment’s changes (decision 175: its tabs share it, and each page decides which concern it). First a hello (now, in milliseconds since the epoch), then a change event for each change (JSON: deployment, kind run/dag/workers/refresh, run, dag, at), the same change at most once a COALESCE per deployment (never dropped: sent when that time is up), and a ping every KEEP_ALIVE (a page polls when even those stop coming: a proxy buffering the stream).