title: Socket emits data to often to the client
body: <p><strong>When using socket-io in the following way, the client gets the data too often.</strong></p>
  <p><strong>Server.js</strong></p>
  <pre><code>socket.on('rcn-scd-fiv', () =&gt; {
      rcdvsf.get('rcn-scd-db').then((data) =&gt;{
        socket.emit('int-con', data)
      })
      console.log('data given to', socket.id)
      
    })
  
  </code></pre>
  <p><strong>client.js:</strong></p>
  <pre><code>socket.emit('rcn-scd-fiv')
      socket.on('int-con', data =&gt; {
        // The data is logged 18 times to the console
        console.log(data.rcdvsf)
        setRooms(data.rcdvsf)
      })
  </code></pre>
  <p><strong>console</strong></p>