title: How to use slanger in rails
body: <p>I want to use slanger in my rails app (in my php-App it works great), but I don't get any connection.</p>
  
  <p>192.168.56.101 is my local Slanger-Server, I started it with :</p>
  
  <pre><code>slanger -k 123 -s 123 -w 192.168.56.101:8080
  </code></pre>
  
  <p>My config/initializers/pusher.rb</p>
  
  <pre><code>Pusher.url = "192.168.56.101"
  Pusher.port = 4657
  Pusher.app_id = 123
  Pusher.key = 123
  Pusher.secret = 123
  </code></pre>
  
  <p>My client-script looks like this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      Pusher.host    = '192.168.56.101'
      Pusher.ws_port = 8080
      Pusher.wss_port = 8080
  
      var pusher = new Pusher('123');
      var channel = pusher.subscribe('test');
      channel.bind('my_event', function(data) {
        alert( data.message );
      });
  
      Pusher.log = function(data) {
          console.log('\t\t', data);
      };
  &lt;/script&gt;
  </code></pre>
  
  <p>In my firebug-console I got this:</p>
  
  <pre><code>Pusher : State changed : initialized -&gt; connecting
  Pusher : Connecting : ws://192.168.56.101:8080/app/123?protocol=5&amp;client=js&amp;version=1.12.5&amp;flash=false
  Firefox kann keine Verbindung zu dem Server unter ws://192.168.56.101:8080/app/123?protocol=5&amp;client=js&amp;version=1.12.5&amp;flash=false aufbauen.
  Pusher : Connecting : wss://192.168.56.101:8080/app/123?protocol=5&amp;client=js&amp;version=1.12.5&amp;flash=false
  Firefox kann keine Verbindung zu dem Server unter wss://192.168.56.101:8080/app/123?protocol=5&amp;client=js&amp;version=1.12.5&amp;flash=false aufbauen.
  Pusher : Error : {"type":"WebSocketError","error":{"isTrusted":true}}
  Pusher : State changed : connecting -&gt; unavailable
  </code></pre>