Questions tagged [long-polling]

In web programming, long-polling is an emulation of pushing data, implemented by repeated polling with delayed response.

Long polling is itself not a true push; long polling is a variation of the traditional polling technique, but it allows emulating a push mechanism under circumstances where a real push is not possible, such as sites with security policies that require rejection of incoming HTTP/S Requests.

1099 questions
-2
votes
2 answers

Timer won't die javascript

I am doing some long polling.. and I have a function to make a button blink when a certain statement is true.. Here it is: function blinking(object, x) { console.log(x); if(x>0){ var existing_timer = object.data('clock'); …
greycode
  • 113
  • 5
  • 16
-3
votes
1 answer

How can I cancel a node thread prematurely from my frontend?

I have a react web app which generates solutions for rubik's cubes. When the user makes a query on my site, it starts a long computation process (anywhere from 1 second - 240 seconds). Every time a solution is found, the state is changed and the…
713sean
  • 313
  • 11
-4
votes
2 answers

Once in a while, axios http long polling not returning at all

I have a function that looks like async function longPoll() { let timeout = 0 try { // perform longPoll tasks let response = await axios.get(config.url) const data = response.data && response.data.data if…
Afriza N. Arief
  • 7,696
  • 5
  • 47
  • 74
-4
votes
1 answer

Real-time Web Application using what and why? Explanations and small live demo needed

I wanted to learn, how to make "notification"/"chat" like thing of facebook and google. I searched through all web/ almost stack overflow questions to get my answer, but all I end up not making even a single chat box. I searched and have a great…
1 2 3
73
74