Skip to main content

emit_or_warn

Function emit_or_warn 

Source
pub fn emit_or_warn<S: Serialize + Clone>(
    window: &WebviewWindow,
    event: &str,
    payload: S,
)
Expand description

Emit event with payload on window, logging (rather than propagating) a failure. Frontend event delivery is best-effort — a failed emit shouldn’t fail the command that triggered it.