emit_event_from_state

Function emit_event_from_state 

Source
pub fn emit_event_from_state(state: &AppState, event: &str, payload: &Value)
Expand description

Emit an event to the “main” browser stored in AppState. This is a convenience wrapper for use from command handlers and background tasks.