emit_event

Function emit_event 

Source
pub fn emit_event(browser: &Browser, event: &str, payload: &Value)
Expand description

Emit an event to the frontend via CEF’s execute_javascript.

The event will be dispatched as a CustomEvent named agentmux-event with detail.event set to the event name and detail.payload set to the serialized payload.