A webchat application based on websockets. Includes both server and client applications.
At startup, the client prompts for a username, which will then sign all of their messages.
Each message sent to and relayed from the server contains a timestamp, the user and the actual message, which are displayed in bubbles via the TUI.
The TUI also indicates entries and departures from the chatroom.
Download rust, clone the repo and use :)
This repo provides a basic bash script (tmux.sh) which sets up multiple tmux panes.
Running it will spin up the server, along with two clients.
OR
Run
cargo run -p serverThis listens for incoming connections on port 5050.
Run
cargo run -p clientBy default, it attempts to connection to a server on ws://127.0.0.1:5050
You may change this by exporting the full path as the env variable SERVER_IP, i.e. SERVER_IP="ws://127.0.0.1:6060"
By default, the server logs directly to the terminal.
The clients, however, log to a file called "chatey_client.log"
