pub fn write_event(event_type: &str, data: &str) -> Bytes
Formats a single SSE frame with the given event type and data.