title: How do I properly emit data to server from client using Node.js?
body: <p>When the client connects to the server a message is supposed to be emitted to the console. I'm not getting any errors so I'm confused as to what my problem actually is.</p>
  
  <p><strong>Server:</strong> As you can see the client connects.
  <a href="https://i.stack.imgur.com/6a8ua.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6a8ua.png" alt="enter image description here"></a>
  <br>
  <strong>Client:</strong> The message doesn't appear in the console.
  <a href="https://i.stack.imgur.com/dZPms.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dZPms.png" alt="client image"></a><br>
  (Forgive me for the links, I don't have 10 reputation)
  <br><br> How do I get the message to print to the console?</p>
  
  <p>I've read other posts like this one, but they weren't helpful :(</p>