title: angular-socket-io io is not defined
body: <p>There was a suggestion here: <a href="https://github.com/btford/angular-socket-io/issues/127" rel="noreferrer">https://github.com/btford/angular-socket-io/issues/127</a></p>
  
  <ul>
  <li><p>make sure you have socket.io client library:</p>
  
  <pre><code>bower install socket.io-client --save
  </code></pre></li>
  </ul>
  
  <p>This didn't fix my problem with this same error.</p>
  
  <ul>
  <li><p>including in index.html: </p>
  
  <pre><code>script src="lib/angular-socket-io/socket.js"
  </code></pre></li>
  <li><p>in app.js</p>
  
  <pre><code>angular.module('starter', ['ionic', 'starter.controllers', 'starter.services',       
   'starter.directives', 'btford.socket-io'])
  </code></pre></li>
  <li><p>in services.js</p>
  
  <pre><code>.factory('seatStatusSocket',function(socketFactory){ 
     var myIoSocket = io.connect(porturl); // io is not defined here, suddenly.
  </code></pre></li>
  <li><p>It was working before, using a remote copy of the lib. When this error started, I changed index.html to link a local copy, as this remote version also received a Bad Gateway error (now fine, but still socket io is not defined as above).</p></li>
  </ul>
  
  <p>removed:</p>
  
  <pre><code>script src="http://chat.socket.io/socket.io/socket.io.js"
  </code></pre>
  
  <p>versions</p>
  
  <pre><code>socket.io@1.3.7 node_modules/socket.io
  node --version
  v0.12.7
  </code></pre>