mirror of
https://git.sdf.org/epl692/tui-mqtt-chat.git
synced 2026-08-11 01:03:49 -04:00
549070d3e9d5c2cb4adbae06d8e380e7829bbcb1
This commit refactors the chat application to transmit MQTT messages using a structured JSON format. The struct, leveraging , now encapsulates both the username and the message content, allowing them to be sent and received as distinct fields. Key changes include: - Added and dependencies to . - Defined a struct with and fields. - Modified message publishing to serialize instances to JSON. - Updated message receiving to deserialize JSON payloads into instances. - Adjusted internal message storage and display logic to handle the separate username and message components. - Ensured the connect message also uses the new structured format.
Description
No description provided
181 KiB
Languages
Rust
100%