Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Vine/Client/
SubscribeNotifications.rs

1//! Subscribe to the global notification fan-out. Each call returns a
2//! fresh receiver that observes every notification fanned out AFTER
3//! subscribe time (broadcast semantics; no historical replay). Drop the
4//! receiver to unsubscribe.
5
6use crate::Vine::Client::{NotificationFrame, Shared};
7
8pub fn Fn() -> tokio::sync::broadcast::Receiver<NotificationFrame::Struct> {
9	Shared::NOTIFICATION_BROADCAST.subscribe()
10}