title: connect node js server to a running php web server
body: <p>I'm developing a realtime chat app using node js, socket io which is embedded unto an php app. So basically, running my php app unto my local machine by...</p>
  
  <pre><code>php -S localhost:8000
  </code></pre>
  
  <p>and then the node server runs on port 3770 and yet, I was unable to connect to my node server. Tried...</p>
  
  <pre><code>var socket = io.connect('http://localhost:8000/my-php-app/:3770');
  </code></pre>
  
  <p>Seems, i put the wrong web socket url. Any help, ideas?</p>