Chat Back-End using Express.js Todo Looking for potential bug and fix it Make the code more elegant This is a part of https://github.com/agmadt/chat-nextjs-frontend