title: How to limit the message stream interval of a web socket I connected to
body: <p>I dont think it is necessary to post my code here, but incase it is I have it below.</p>
  <p>I am connected to coinbases websocket and trying to pull prices on coins but the message stream feeds me data many times per second, but I am looking to pull price data about  once a minute.</p>
  <p>Can anyone help me understand how to limit a message stream using the WS node package?</p>
  <pre><code>
  const stream = new WebSocket('wss://ws-feed.exchange.coinbase.com')
  
  stream.on('open', () =&gt; {
      stream.send(JSON.stringify({
          &quot;type&quot;: &quot;subscribe&quot;,
          &quot;product_ids&quot;: [
              &quot;BTC-USD&quot;
          ],
          &quot;channels&quot;: [
              {
                  &quot;name&quot;: &quot;ticker&quot;,
                  &quot;product_ids&quot;: [
                      &quot;BTC-USD&quot;
                  ]
              }
          ]
      }))
  })
  
  
  stream.on('message', (data) =&gt; {
      console.log('received: ', JSON.parse(data))
  })
  </code></pre>