Hi guys, I was working on a chat application, and I need some suggestions on this. I have a separate server, and whenever a user logs into my application and selects a user, viewing and sending a message, he will be stored on the server, and then my application checks if any new message has appeared for me. if any message appears, I will be notified to the user. For this, I used this method to update ui when a new message appears
And when the chat continues for more than 3 minutes, the application starts to slow down ... I'm looking for the best deals on how to solve the problem.
source share