chat
Simple one on one chat
Summary
This crate make use of actix Actor system and tokio asynchronous run-time.
The application can start in 2 modes:
- Server: waiting for client(s) to connect
- Client: Connecting to a server
Features:
- The server can communicate with differents clients simultaneously.
- Both client and server can send message to the other side.
- When a message is received on one side, it automatically send back "message received".
- The sending side show the roundtrip time.
- Any data can be send: binary, text (any encoding)
Build
cargo build --release
Run
chat # Run as server
chat --client # Run as client
chat --help # For more options and informations
Documentation
cargo doc --document-private-items --open
Tests
cargo test