This is a basic WebSocket chat backend implemented in Rust. It allows multiple clients to connect and exchange messages in real-time.
- Handles WebSocket connections
- Broadcasts messages to all connected clients
- Lightweight and fast
- Install Rust (latest stable version).
- Ensure
cargo
is available in your environment.
git clone https://github.com/Cdingram/chat-backend.git
cd chat-backend
cargo run
Build and run the project, the WebSocket server will start on ws://127.0.0.1:8080/ws/. You can connect to it using any WebSocket client or the given index.html to test.