Skip to main content

emit_event

Function emit_event 

Source
pub fn emit_event(event_type: &str, data: &[u8])
Expand description

Emit a custom event with an arbitrary payload. Listeners registered for this event type via on_event will be invoked on the next frame (before timers and on_frame).