Skip to main content

Crate room_protocol

Crate room_protocol 

Source

Enums§

Message
Wire format for all messages stored in the chat file and sent over the socket.

Functions§

make_command
make_dm
make_join
make_leave
make_message
make_reply
make_system
parse_client_line
Parse a raw line from a client socket. JSON envelope → Message with broker-assigned id/room/ts. Plain text → Message::Message with broker-assigned metadata.