title: nodeJS websockets giving me a weird JSON circular error
body: <p>I'm getting a weird error when using websockets and creating a reference to the socket itself</p>
  <pre><code>file:///var/www/html/_servers/demo/scripts/user.js:60
        socket.send(JSON.stringify({ type: 'login_success', info: { map: mapData, players: playerList } }));
                         ^
  
  TypeError: Converting circular structure to JSON
      --&gt; starting at object with constructor 'Socket'
      |     property '_writableState' -&gt; object with constructor 'WritableState'
      |     property 'afterWriteTickInfo' -&gt; object with constructor 'Object'
  </code></pre>
  <p>If I delete the socket from the object before sending then I don't get the error but I need to reference the socket so I can send messages to certain players.  I thought maybe I could copy the objects to a new array and then delete them from that array but it always deletes it from both arrays.</p>
  <pre><code>      let playerList = [];
        data.getZone(p.zone).forEach(function(p){ playerList.push(p); });
        playerList.forEach(function(i){ delete i.socket; });
  </code></pre>