Answer the question
In order to leave comments, you need to log in
Simultaneous ajax + longpoll operation?
There is a site that implements work with the server side (php) through ajax requests. All pages are on the same domain, the user is defined everywhere through session cookies, the last event number is stored there.
A longpoll was attached to this site, which maintains a permanent connection with one of the backend pages, reconnecting to the page after it has finished loading (10 seconds), everything works as it should.
The problem is that if, during the execution of some longpoll request, another request is called, then it will be processed only after returning the result from the longpoll.
On vk.com, for example, everything works fine, during longpoll requests, others are sent without problems, not waiting for the end of each other. Can you please tell me how to achieve exactly the same result?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question