implement socket.io "chatroom" demo