title: Socket.io - Preventing multiple connections from a client
body: <p>I just got started in node.js and created a server where browser clients can connect to it. </p>
  
  <p><strong>Problem:</strong> When there is an error in the nodejs server and it crashes and restarts, the connected clients will usually reconnect automatically, but I notice that many clients usually make multiple reconnections back to the server! </p>
  
  <p>How can I prevent that from happening, either serverside or clientside?</p>