title: GET http://localhost:3000/socket.io/socket.io.js 404 (Not Found)
body: <p>I'm trying to stream data to the browser. I'm struggling, however, to connect it to the browser. Here's my html:</p>
  
  <pre><code>&lt;ul class="tweets"&gt;&lt;/ul&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="/socket.io/socket.io.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      var socket = io.connect();
      jQuery(function ($) {
          var tweetList = $('ul.tweets');
          socket.on('tweet', function (data) {
              tweetList .prepend('&lt;li&gt;' + data.user + ': ' + data.text + '&lt;/li&gt;'); 
          }); 
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>And here's the relevant parts of my app.js:</p>
  
  <pre><code>var express = require('express')
      , twitter = require('ntwitter')
    , http = require('http')
    , path = require('path');
  
  var app = express();
  
  var io = require('socket.io').listen(app);
  
  app.get('/', function (req, res) { res.sendfile(__dirname + '/index.html'); });
  
  app.listen(app.get('port'), function(){
     console.log("Express server listening on port " + app.get('port'));
  });
  
  io.sockets.volatile.emit('tweets', {
              user: data.user.screen_name,
              text: data.text,
              geo : geo,
              latitude: latitude,
              longitude: longitude
                  });
  </code></pre>
  
  <p>I installed socket.io 0.9.16 via my packages.json file:</p>
  
  <pre><code>"dependencies": {
      "express": "3.2.6",
      "jade": "*",
      "ntwitter":"0.2.10",
      "socket.io":"0.9.x"
    }
  </code></pre>
  
  <p>Can anyone help me out here? Why can't it find the file?</p>
  
  <p>Digging a bit deeper. To test the socket, I put this in the app.js:</p>
  
  <pre><code>var socket = io.listen(app);
  </code></pre>
  
  <p>And I get the error:</p>
  
  <pre><code>TypeError: Object #&lt;Manager&gt; has no method 'listen'
      at Object.&lt;anonymous&gt; (/home/andy/dev/node/mytwittermap/app.js:49:17)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)
      at node.js:901:3
  </code></pre>