title: Node.js socket.io not responding to iOS socket.io emit requests
body: <p>I can't seem to figure this one out. I'm testing the usage of socket.io to connect an iOS client app with a Node.js server. My server code looks like this:</p>
  
  <pre><code>var io = SocketIO(8099, { log: true });
  
  io.on('connection', function (socket) {
  
      socket.on('connect', function (data) {
              console.log('Connected, data: ' + data);
          });
  
      socket.on('getProjects', function(from, msg) {
          database.allProjects(function getAllProjectsCallback(err, rows) {
              console.log('Got the project list');
              socket.emit('projectList', rows);
          });
      });
  
  });
  </code></pre>
  
  <p>My iOS code starts with: </p>
  
  <pre><code>_socket = [[SocketIOClient alloc] initWithSocketURL:@"http://localhost:8099" opts:nil];
  
      [_socket on:@"connect" callback:^(NSArray* data, SocketAckEmitter* ack) {
          NSLog(@"socket connected");
      }];
  
      [_socket on:@"projectList" callback:^(NSArray* data, SocketAckEmitter* ack) {
          NSLog(@"Project list received");
          [ack with:@[]];
      }];
  
      [_socket connect];
  </code></pre>
  
  <p>And in another method I have this code which should send the get projects request:</p>
  
  <pre><code>[_socket emit:@"getProjects" withItems:@[]];
  </code></pre>
  
  <p>I can see the iOS "socket connected" message in the log. But not the Node.js "Connected, ..." message. When I trigger the <code>[_socket emit:@"getProjects" ...]</code> in iOS, nothing happens on the server. Neither the 'connect' or 'getProjects' events are called. </p>
  
  <p>I've trolled the internet and as far as I can tell, I've done everything as per all the blogs and examples I can find. </p>
  
  <p>What am I missing in this setup? Or have I fundamentally miss-understood something?</p>