title: How to avoid create a new socket connection in socket.io after html page refresh?
body: <p>I have tried socket.io, I found when client html page load, a new socket connection created.When I refresh the page, I found a new socket connection create, and then the old connection disconnect.</p>
  
  <p>My problem is how to avoid this? Because I am building a chat room application. When a user enter the room page, on "connection" servier side emit "Welcome user xxx come!", and on 'disconnec' event emit "User xxx leaved."  But when a user refresh the current page, this will  fire 'disconnect' event and filre 'connected' event again. And it will emit "Welcome user xxx come!" and "User xxx leaved." messages together.</p>
  
  <p>How to ignore page refresh event?And Just like http session?</p>
  
  <hr>
  
  <p><strong>Update</strong>: I have already found way to solve the problem. from this question <a href="https://stackoverflow.com/questions/20260170/handle-browser-reload-socket-io">Handle browser reload socket.io</a></p>