title: Getting the error "socket.io not found"
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11653237/socket-io-failed-to-load-resource">socket.io: Failed to load resource</a>  </p>
  </blockquote>
  
  
  
  <p>I have a server already running on <strong><a href="http://localhost:4250" rel="nofollow noreferrer">http://localhost:4250</a></strong></p>
  
  <p>I have socket.io directory, which I have downloaded from the socket.io github.</p>
  
  <p>and I am trying to connect to server like:</p>
  
  <pre><code>&lt;script src="socket.io/socket.io.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and how I connect to server:</p>
  
  <pre><code>&lt;script&gt;
    var socket = io.connect('http://localhost:4250');
  
    socket.on('connect', function (data) 
    {
      console.log(data);
      socket.emit('my other event', { my: 'data' });
    });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>I am getting these errors:</p>
  
  <pre><code>NetworkError: 404 Not Found - http://localhost/socket.io/socket.io.js"
  </code></pre>
  
  <p>and </p>
  
  <pre><code>ReferenceError: io is not defined
  </code></pre>
  
  <p>I have already tried everything I know, so I don't know what to do now. </p>
  
  <p>Thank you!</p>