Skip to main content

encode_subscribe

Function encode_subscribe 

Source
pub fn encode_subscribe(buf: &mut [u8], pattern: &str) -> usize
Expand description

Encode a SUBSCRIBE message Format: msg_type(1) + id(4) + pattern + type_mask(1) + opt_flags(1)