solution to chatapp project using node.js and websockets/socket.io