Skip to main content

write_frame

Function write_frame 

Source
pub fn write_frame(
    out: &mut Vec<u8>,
    fin: bool,
    opcode: Opcode,
    payload: &[u8],
    mask: Option<[u8; 4]>,
)
Expand description

Appends a whole frame (masked when mask is given).