How to get response from server every second in JSON?

141 views Asked by At

I want to get response from server every one second, the output will contain some value which I need to process in front end.

In backend I am using some queries to read data from MySQL and return me output.

Things I have tried:

  1. Ajax
  2. Webserver Events
  3. Amazon CloudFront

None of these work for me. Usually it takes 3-4 seconds to get me response,

classic example to see this working (getting output in one sec)

http://madbid.com

Please let me know if anyone has some solution for this

0

There are 0 answers