The instant chat you are talking about usually gets what is called "Long Polling", or, if we are talking about AJAX, "Comet" ( Wikipedia talks about this). The survey tends to reconfigure Apache servers, but there are some specialized servers for working with it, such as APE . I'm not sure, but I think you can do the same with NodeJS and NGINX . stress is pretty good.
Here's an article on how to implement a long chat survey with PHP jQuery and AJAX.
Good luck, and I hope this helps!
source share