Hi,
I am new to ajax and was taking look at code snippets.
Most of the code open and send are like this:
var client = new XMLHttpRequest();
client.open("POST", "/log");
client.send(message);
They open a connection and send the msg. Isnt connection open a costly call since the connection is set up over TCP/IP for HTTP? Why do we need to do a open each time? Wont the send go fine with the previous send session connection?
Bharath