Functionsยง
- encode_
packet - Encode a packet with binary data to a byte array.
- encode_
payload - Encode a payload containing multiple packets with either binary or string data to a byte array. In an encoded payload, each packet is denoted with its length and its data type; either binary or string. This function passes binary packet data as is, and encodes string packets to bytes.