Add: Chat history, fixed socket.io connection fail on the 2nd time.