simple implementation of a socket.io chat using nodejs