Titan API Codec
Contains helpers for encoding and decoding Titan API types to/from binary.
Primary Usage
The main entry points for users should be:
titan_api_types::codec::ws::v1::ServerCodec: For server implementors.titan_api_types::codec::ws::v1::ClientCodec: For client implementors.
Users would extract the Sec-WebSocket-Protocol header value after WebSocket protocol negotiation, use their chosen codec to parse that and generate the proper encoder and decoder for sending/receiving messages.
Features
All features are currently default, please use with-default-features = false
if you wish to chose only specific features.
brotli: Enables brotli compression support.gzip: Enables gzip compression support.zstd: Enables zstd compression support.messagepack: Enables MessagePack encoding support. Required for any Codecs to be available.enum-other: Enablesenum-otherfeature intitan-api-typesto allow for handling unknown message types.