Right now, the chat is cleared once the page reloads. A simple solution would be to store the message array in local storage. Upon rejoining the room, chat will be restored. The chat storage can be cleared once the user manually leaves or when they join a different room.
Right now, the chat is cleared once the page reloads. A simple solution would be to store the message array in local storage. Upon rejoining the room, chat will be restored. The chat storage can be cleared once the user manually leaves or when they join a different room.