Expand description
Message codec.
Codec provides encode/decode for WebSocket text frames. A blanket
implementation via serde_json is provided for any Serialize + DeserializeOwned.
Structs§
- Json
Codec - JSON codec helper for types that don’t want to implement
Codecdirectly or where you need associated functions without trait dispatch.
Traits§
- Codec
- Trait for encoding/decoding WebSocket messages.