title: How to send two variables in one message using Socket.io?
body: <p>I have a clientid and username and i want them both send with the socket.</p>
  
  <pre><code> client.userid = userid;
   client.username = username;
   client.emit('onconnected', { id: client.userid, name: client.username });
  </code></pre>
  
  <p>i tried this for example but it doesn't seem to work</p>