Change:
setInterval(getMessages(), queryInterval);
To:
setInterval(getMessages, queryInterval);
More Related Contents:
- How would I make a Timer which times things in 0.75 seconds Javascript?
- Stop setInterval call in JavaScript
- setTimeout or setInterval?
- How can I make setInterval also work when a tab is inactive in Chrome?
- How to create an accurate timer in javascript?
- Changing the interval of SetInterval while it’s running
- Calling a function every 60 seconds
- Why does the setInterval callback execute only once?
- Execute the setInterval function without delay the first time
- Stop setInterval
- How can I pause setInterval() functions?
- Will setInterval drift?
- Calculating Page Load Time In JavaScript
- Viewing all the timeouts/intervals in javascript?
- How to make `setInterval` behave more in sync, or how to use `setTimeout` instead?
- setInterval timing slowly drifts away from staying accurate
- How do I reset the setInterval timer?
- setInterval/setTimeout return value
- How to stop “setInterval” [duplicate]
- How to use setInterval function within for loop
- Is setInterval CPU intensive?
- Using setInterval() to do simplistic continuous polling
- How to clearInterval with unknown ID?
- function in setInterval() executes without delay
- setInterval not working properly on Chrome
- Javascript setInterval not working
- Does JavaScript setInterval() method cause memory leak?
- recursive function vs setInterval vs setTimeout javascript
- Making a live clock in javascript
- How do I correctly use setInterval and clearInterval to switch between two different functions?