Alright, so I have a very web application that has a chatting feature. This chatting feature is literally just a PHP script refreshed every second thanks to AJAX calls on setTimeout. Since it is so AJAX heavy, a few players from Oceania are having latency issues, so the chat system is not exactly instant. I get that the main issue is via the network, but is there a more effective way than just using setTimeout/setInterval?
I feel as if I should stray away from jQuery for this chat system, and maybe move to a socket chat. However, the only library I know is jQuery. What is a good alternative that will be fast and lightweight?
I feel as if I should stray away from jQuery for this chat system, and maybe move to a socket chat. However, the only library I know is jQuery. What is a good alternative that will be fast and lightweight?



![[Image: tkg318I.png]](https://i.imgur.com/tkg318I.png)