Skip to main contentModule events
Source use std::iter::once; π use axum::extract::State; π use futures::Stream; π use futures::StreamExt; π use futures::future::ok; π use futures::pin_mut; π use ruma::UserId; π use ruma::api::client::peeking::listen_to_new_events::v3::Request; π use ruma::api::client::peeking::listen_to_new_events::v3::Response; π use tokio::time::timeout_at; π use tuwunel_core::Err; π use tuwunel_core::Result; π use tuwunel_core::err; π use tuwunel_core::utils::BoolExt; π use tuwunel_core::utils::OptionExt; π use tuwunel_core::utils::future::OptionFutureExt; π use tuwunel_core::utils::stream::IterStream; π use tuwunel_core::utils::stream::ReadyExt; π use tuwunel_core::utils::stream::WidebandExt; π use tuwunel_matrix::Event; π use tuwunel_matrix::PduCount; π use tuwunel_service::Services; π use tuwunel_service::rooms::timeline::PdusIterItem; π use super::visibility_filter; π use crate::Ruma; π use crate::utils::sync_deadline; π
- Listen π
- One userβs listen on one roomβs event stream.
- EVENT_LIMIT π
- events_route π
- GET
/_matrix/client/v3/events - listen_filter π
- Keeps an event the listener may see.
- visible_page π
- The events of a window the user may see, as one page of the stream.
- window_page π
- The page for a window of new events, or
None while the window is empty.