so I am attempting to poll my server. I am trying to poll my server every 5 seconds. And the poll times out after one minute. I have a few console logs in the method for debugging but the only console.log that fires even after waiting 5 seconds is ‘validate stream start’ I followed this tutorial without creating a separate
Tag: polling
polling vs long polling
I got onto these examples showing polling vs long-polling in javascript, however I do not understand how they differ from one another. Especially regarding the long polling example, how does it keep its connection open? This is what the traditional polling scenario looks like: and this is the long polling example: Thanks! Answer The difference is this: long polling allows