title: Check for an incoming message in aws sqs
body: <p>How does my function continuously check for an incoming message? The following function exits, after receiving a message. Considering, long polling has been enabled for the queue how do I continuously check for a new message?</p>
  
  <pre><code>function checkMessage(){
      var params = {
                  QueueUrl : Constant.QUEUE_URL,
                  VisibilityTimeout: 0,
                  WaitTimeSeconds: 0
              }
      sqs.receiveMessage(params,(err,data) =&gt; {
          if(data){
              console.log("%o",data);
          }
      });
  }
  </code></pre>