title: How do I get socket.io running for a subdirectory
body: <p>I've got a proxy running that only hits my node.js server for paths that being with <code>/mysubdir</code>
  How do I get socket.io configured for this situation?</p>
  
  <p>In my client code I tried:</p>
  
  <pre><code>var socket = io.connect('http://www.example.com/mysubdir');
  </code></pre>
  
  <p>but then I notice that the underlying socket.io (or engine.io) http requests are hitting </p>
  
  <pre><code>http://www.example.com/socket.io/?EIO=3&amp;transport=polling&amp;t=1410972713498-72`
  </code></pre>
  
  <p>I want them to hit</p>
  
  <pre><code>http://www.example.com/mysubdir/socket.io.....
  </code></pre>
  
  <p>Is there something I have to configure on the client and the server?</p>