Skip to main content

write_event

Function write_event 

Source
pub fn write_event(event_type: &str, data: &str) -> Bytes
Expand description

Formats a single SSE frame with the given event type and data.