I created a live chat that is pretty great. Supports gifs, images, emote reacts, message emotes… I’m very happy with it.
But when I am testing it, with one window Person A another another window Person B, everything is fine until there is a long pause in the conversation. Something between 5 and 10 minutes. If Person A starts sending messages again, Person B does not see them, until Person B types something and it updates.
I assume this is some kind of stale session on the message query. Is there any trick or gimmick I can use so that as long as the user is logged in and on the chat screen, they will see all new messages even if the conversation lulls or they don’t type for a long time?