title: Socket IO and MongoDB server
body: <p>Today i installed MongoDB and Socket IO + Nodejs on Ubuntu (15.10)</p>
  
  <p>Everything is installed correctly, but my server.js (making a realtime chat) does not make any connection, This is the script i have:</p>
  
  <pre><code>var mongo = require('mongodb').MongoClient, client = require('socket.io').listen(8080).sockets;
  
  client.on('connection', function(socket){
  console.log('Someone has connected!');
  });
  </code></pre>
  
  <p>Just nothing happends: </p>
  
  <p><a href="https://i.stack.imgur.com/whknt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/whknt.png" alt="enter image description here"></a></p>
  
  <p>Can anyone help me? THanks alot!</p>
  
  <p>From a tutorial i had to add</p>
  
  <pre><code>&lt;Script src="http://127.0.0.1/socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But it says it cant find it altho its installed.</p>
  
  <p>my Index:</p>
  
  <p><a href="https://i.stack.imgur.com/k88aF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k88aF.png" alt="enter image description here"></a></p>