Day 0 (Part 2)
Today I decided to finish the echo server so that it can support multiple clients (currently up to 5). Each client also gets its own ID to keep the server logs cleaner and easier to read.
I also added a Dockerfile and a docker-compose.yml, so the server can be launched on a VPS without any extra setup or hassle.
As always, a few issues appeared along the way. At first, I’m not even sure what I messed up, but when I deployed the server to my VPS, Docker didn’t expose the container ports correctly, so the client couldn’t connect. After some debugging, I managed to fix it.
Another challenge was handling a dynamic number of client IDs. However, since I’m planning to switch to nicknames instead of IDs later, I decided not to spend too much time on it for now.
Tomorrow’s plan is to finally start Day 1, refactor everything and prepare the project for turning it into a proper global chat system. I also want to start working on a terminal-based global chat version either tomorrow or the day after. I already know some things will be problematic there, but I’ll probably solve them in Day 3 or later when I start working on a full GUI.
For now, I also plan to write a README later today or tomorrow.
See you in the next devlog!!!
P.S. Devlogs might not appear daily until the summer holidays in Poland start.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.