I just looked at your code and I already have it working the way you want, if you accept my bid, I will send you the working code plus a few tests.
Relevant Skills and Experience
I have done socket programming in various languages, Python, Elixir and Ruby, and i currently have several tcp-based protocols implemented in production systems.
Proposed Milestones
₹1750 INR - Working server implementation plus tests.