Nice work! Some time age I worked on a similar project for a client but with much bigger scaling needs (300k+ concurrent connections). My client authorized me to publish the project with an open licence. It's available here if you want to take a look: https://github.com/geekuillaume/chatup
I did something similar for a university project to show why input/output sanitization is so important. Very simple project (~100 lines iirc) but it did the job!