title: Keeping an open connection in Internet Explorer (7,8,9)
body: <p>I am in a project where I need to connect to a client's server and retrieve data for some graphs. </p>
  
  <p>The client wants this to be something in real time (they have a script that is listening for connections and feeds data constantly).  </p>
  
  <p>My big problem is that I don't think this can be done in IE as easy as it would be done in Firefox or Chrome. Firefox and Chrome both support web sockets so I think I could make something that would do exactly what the client wants.</p>
  
  <p>In IE the only way I could do this is by using a setTimeout with an ajax call.</p>
  
  <p>Is there any other alternative for IE?? </p>
  
  <p>For now we're using jquery .ajax() and setting a callback for the onReadystageChanged event that handles the server response when the readyState == 3. But this doesn't work as expected because the connection closes after the first response.</p>
  
  <p>Also, I am using IIS with Application Request Routing module as a proxy and a URL rewriting rule because we're using cross domain services. But this module uses a buffer with at least 1KB that corrupts the server response. The services were created by another company that won't implement CORS specification in their server. </p>
  
  <p>How can I work around this and receive the response without buffering?</p>
  
  <p>Thank you</p>