Commit Graph

7 Commits

Author SHA1 Message Date
b9bad2f1a3 feat: move config file to ~/.config/mqtt-chat.ini 2025-07-15 13:19:32 -04:00
4d136b577a feat: move mqtt configuration to config.ini 2025-07-15 13:00:14 -04:00
66aa3bdd45 feat: implement automatic scrolling 2025-07-15 12:49:02 -04:00
53fdd0a0f2 feat: Implement /join command with room change messages and update startup notice
This commit introduces the following enhancements:
- Renamed the  command to  for changing chat rooms.
- Added leaving messages to the old room and joining messages to the new room when a user changes rooms using .
- Updated the startup notice to inform users about the  command and the current room.
2025-07-14 15:34:25 -04:00
c96e6dd408 feat: Add /nick command usage instruction and broadcast username changes
This commit enhances the chat application by:
- Adding a startup message to inform users about the  command for changing usernames.
- Modifying the  command to broadcast username changes to the chat, using the structured MQTT message format.
2025-07-14 15:26:20 -04:00
549070d3e9 feat: Implement structured MQTT messages with separate username and message
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.
2025-07-14 15:21:11 -04:00
b0f8e535d2 Initial Commit 2025-07-14 15:12:55 -04:00