[][src]Module engine_io_parser::binary::encoder

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.