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
Interesting.
Someone somehow attempted to open a new tab with pornhub while I was in the demo chatroom. Nothing was visible in the chat itself.
Uhm, yeah it works but it's just a barebones chat using socket.io or am I missing something here?
Including no input/output sanitization which leads to XSS issues.
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!