I'm trying to get the implantation for auto refresh on my project which is chat bot. When the chat page is open and a conversation is loaded, I should periodically refresh the conversation entries list. By default, every 5 seconds.
- If there are no additional conversation entries on a refresh, we should increment the wait time by 5 seconds, up to a maximum of 120 seconds.
- If there are additional conversation entries on a refresh, we should reset the wait time to 5 seconds.