Suppose we have a simple echo server (tuned to be longer on the first request):
var waiting = 8000; io.on(\'
With socket.io you can send and receive acknowledgements via callbacks.
See this: http://socket.io/docs/#sending-and-getting-data-(acknowledgements)