4at
4at copied to clipboard
Simple Multi-User Chat
Replace `checked_sub().unwrap_or(0)` with `saturating_sub()`.
The server can't be compiled and requires 'os-poll' and 'net' feature flags for 'mio' crate. It's even mentioned for the example in its README file.
Implemented features: - Press `DEL` to remove current character - Press `^DEL` to remove next word - Do not mess chat window with empty messages (whitespaces-only either) - Do not...
Generate a random username for a client when they connect and prefix each of their messages with it