[ad_1]
This is my understanding of AJAX: If I have several pending AJAX requests, each pending request has an event handler awaiting a corresponding response. Suppose the server supplies a response to one of the pending requests. How does the client know where to route that response? In other words, how does the client know which event handler gets the response and which handlers must still wait?
I’ve done some wireshark tracing and it appears that all requests and responses are performed using the same socket, so it’s not like a new connection is created for each GET request.
[ad_2]