title: Prevent recursive calls of XmlHttpRequest to server
body: <p>I've been googling for hours for this issue, but did not find any solution.</p>
  
  <p>I am currently working on <a href="http://racetimer.meteor.com/" rel="nofollow noreferrer">this</a> app, built on <a href="http://meteor.com/" rel="nofollow noreferrer">Meteor</a>.</p>
  
  <p>Now the scenario is, after the website is opened and all the assets have been loaded in browser, the browser constantly makes recursive xhr calls to server. These calls are made at the regular interval of 25 seconds. </p>
  
  <p>This can be seen in the Network tab of browser console. See the Pending request of the last row in image.</p>
  
  <p><img src="https://i.stack.imgur.com/q5OZZ.png" alt="enter image description here"></p>
  
  <p>I can't figure out from where it originates, and why it is invoked automatically <strong>even when the user is idle</strong>. </p>
  
  <p>Now the question is, <strong>How can I disable these automatic requests?</strong> I want to invoke the requests manually, i.e. when the menu item is selected, etc.</p>
  
  <p>Any help will be appriciated.</p>
  
  <p><strong>[UPDATE]</strong></p>
  
  <p>In response to the Jan Dvorak's comment:</p>
  
  <p>When I type "e" in the search box, the the list of events which has name starting with letter "e" will be displayed.</p>
  
  <p>The request goes with all valid parameters and the Payload like this:</p>
  
  <pre><code>["{\"msg\":\"sub\",\"id\":\"8ef5e419-c422-429a-907e-38b6e669a493\",\"name\":\"event_Coll_Search_by_PromoterName\",\"params\":[\"e\"]}"]
  </code></pre>
  
  <p>And this is the response, which is valid.</p>
  
  <pre><code>a["{\"msg\":\"data\",\"subs\":[\"8ef5e419-c422-429a-907e-38b6e669a493\"]}"]
  </code></pre>
  
  <p>The code for this action is posted <a href="http://jsbin.com/eheduc/1/edit" rel="nofollow noreferrer">here</a></p>
  
  <p>But in the case of automatic recursive requests, the request goes without the payload and the response is just a letter "h", which is strange. Isn't it? How can I get rid of this.?</p>