// Good working however there is a loss of chat history on page refresh .