Skip to main content

write_close

Function write_close 

Source
pub fn write_close(
    out: &mut Vec<u8>,
    code: u16,
    reason: &str,
    mask: Option<[u8; 4]>,
) -> bool
Expand description

Appends a Close frame; reason must fit (at most 123 bytes) and code must be sendable.