Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
During an ajax request does the connection between the server and client remains open? Or is it closed after making the ajax call to the server and then reopened when the server sends the response back to the client.
Posted

1 solution

AJAX call is nothing new, but a way of using known HTTP call in an asynchronous way...In the HTTP world the server knows nothing of the client outside the call and for that can not make callback if the client closes the connection, in other words the server can not open connection to the client as it does not know nothing about the client...
You can see that the answer is yes - the connection remains open until the server sends back the result...
 
Share this answer
 
Comments
Member 11123687 1-Oct-14 14:41pm    
Thanks a lot for the answer with the relevant reasoning behind it :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900