Wednesday, Sep 3, 2025
A tcp chat app made with golang and tview
For Client mode:
./main
For Server mode:
./main server <host_address>
the port is 8080 🤷♂️
Pick a username.
Enter the server address and port.
The server will give a warning if the username is in use.
The clients all close when the server is closed.
The updation of user list is on the client side is done by sending a message from the server with a list of all the usersnames. This update message is differentiated from regular user messages by checking whether the first sequence of characters is “#srvc:”. If it matches it parses the message and updates the user list.
Users can send messages starting with “#srvc:” to just update the user list section with the text in the message.
(in no particular order) (probably won’t be done)
Idk.
I was bored in cs lab and wanted to make a chat app. Made this in 2 days and tweaked it over the next few days.
Github repo is here
Compiled binary is in the releases.