Skip to main content

comment

Function comment 

Source
pub fn comment(payload: &str) -> String
Available on crate feature sse and (crate features protobuf or sse) only.
Expand description

Encodes an SSE comment, prefixing every line to prevent frame injection.