I'm trying to simulate a Comet (reverse Ajax) type situation where the server pushes data. I don't want to push the data all at once: more in drips and drabs with random delays in between. Something to simulate data coming from a real device. I can figure out how to do everything else except put in a delay in the server. setTimeout doesn't work, neither does sleep.
Any idea how I can create a delay in the server without being driven by the client?
Any idea how I can create a delay in the server without being driven by the client?