title: Getting the IP address of a socket inside a close event handler
body: <pre><code>socket.on('data', function(data)
  {
      console.log(socket.remoteAddress + ":" + socket.remotePort);
  }
  
  socket.on('close', function()
  {
      console.log(socket.remoteAddress + ":" + socket.remotePort);
  }
  </code></pre>
  
  <p>The log from the data handler displays <code>127.0.0.1:8000</code>.</p>
  
  <p>The log from the close handler displays <code>undefined:undefined</code>.</p>
  
  <p>I am trying to keep a list of connected sockets using IP:Port as the key.  If I don't know which one closed, how can I remove it from the list? How can I get the IP:Port of the closed socket after it's closed?</p>