title: Socket.io Security Issues
body: <p>I'm wondering how I could secure my socket.io connection to the server from th following.</p>
  
  <p>Security Issues:</p>
  
  <ul>
  <li>What would stop malicious users from connecting to the socket server via client side code?</li>
  </ul>
  
  <p>Example: </p>
  
  <pre><code>OUTSIDE DOMAIN REQUEST var socket = io.connect('http://Mydomain', {port: 4000});
  </code></pre>
  
  <ul>
  <li>Users can seemingly create thousands of concurrent connections just by opening a different browser window.</li>
  </ul>
  
  <p>How can I prevent these issues?</p>