title: How can I use the let variable on scope outside the socket event, in the Node.JS code?
body: <p>How can I use the let variable 'equipe' on scope outside the socket event, in the Node.JS code?</p>
  
  <pre><code>socket.on('equipConnected', (data) =&gt; {
         let equip = equips.Equip.deserializeBinary(data);
         console.log(equip.getName());        
      });
  </code></pre>