title: Connect to Socket.IO server with specific path and namespace
body: <p>My Node.js application is running at URL <a href="http://www.example.com/myapp/" rel="noreferrer">http://www.example.com/myapp/</a>.</p>
  
  <p>I have configured a Socket.IO server (version 1.3.5) with a custom namespace. Here is an example code snippet:</p>
  
  <pre><code>var server = http.createServer(...);
  var io = socketio(server);
  io
      .of('/a/b/c')
      .on('connection', function (socket) {
          socket.emit('update', {msg: '/a/b/c'});
      });
  </code></pre>
  
  <p>I can't figure out how to connect to this service from the client. My guesses (none of these is working):</p>
  
  <pre><code>io.connect('http://www.example.com/myapp/a/b/c');
  io.connect('http://www.example.com', {path: '/myapp/a/b/c'});
  io.connect('', {path: '/myapp/a/b/c'});
  io.connect('http://www.example.com/a/b/c', {path: '/myapp'});
  io.connect('http://www.example.com', {path: '/myapp/socket.io/a/b/c'});
  </code></pre>