title: Getting the Pusher JS client working in PhantomJS
body: <p>I'm having an issue with getting the Pusher client to connect when using PhantomJS during selenium testing. The library never makes it out of connecting. </p>
  
  <p>Console Log:</p>
  
  <pre><code>Pusher : State changed : initialized -&gt; connecting (undefined:undefined)
  Pusher : Connecting : {"transport":"ws","url":"wss://ws.pusherapp.com:443/app/8f2c58afe761d56c83dc?protocol=7&amp;client=js&amp;version=3.0.0&amp;flash=false"} (undefined:undefined)
  binded (undefined:undefined)
  Pusher : State changed : connecting -&gt; unavailable (undefined:undefined)
  Pusher : Connecting : {"transport":"ws","url":"wss://ws.pusherapp.com:443/app/8f2c58afe761d56c83dc?protocol=7&amp;client=js&amp;version=3.0.0&amp;flash=false"} (undefined:undefined)
  Pusher : Connecting : {"transport":"ws","url":"wss://ws.pusherapp.com:443/app/8f2c58afe761d56c83dc?protocol=7&amp;client=js&amp;version=3.0.0&amp;flash=false"} (undefined:undefined)
  </code></pre>
  
  <p><a href="http://github.com/beal/pusher-phantom" rel="nofollow">Here</a> is a small project in Django that is exhibiting the issue.</p>