Skip to main content

subscribe

Function subscribe 

Source
pub fn subscribe() -> Option<Receiver<Value>>
Expand description

Subscribe to the broadcast stream. Returns None when no sender has been installed yet (e.g. when running tests that never wired the gateway). The receiver yields every event emitted via crate::record_event after the subscribe call.