title: Websocket-rails doesn't work on production evironment with Nginx and Unicorn
body: <p>I have Rails 3.2 application with gem websocket-rails 0.7.</p>
  
  <p>On development machine, all work fine</p>
  
  <p>On production enviroment, I use Nginx/1.6 as proxy server and Unicorn as http server. Thin is used on standalone mode (following <a href="https://github.com/websocket-rails/websocket-rails/wiki/Standalone-Server-Mode" rel="nofollow">https://github.com/websocket-rails/websocket-rails/wiki/Standalone-Server-Mode</a>). </p>
  
  <p>nginx config:</p>
  
  <pre><code>location /websocket {
     proxy_pass http://localhost:3001/websocket;
     proxy_http_version 1.1;
     proxy_set_header Upgrade $http_upgrade;
     proxy_set_header Connection "upgrade";
  }
  </code></pre>
  
  <p>On backend side, I have the following code for send notification to clients</p>
  
  <pre><code>WebsocketRails[:callback_requests].trigger 'new', call_request
  </code></pre>
  
  <p>On client side, I got a connection using:</p>
  
  <pre><code>dispatcher = new WebSocketRails window.location.host + ':3001/websocket'
  channel    = dispatcher.subscribe 'callback_requests'
  </code></pre>
  
  <p>But notification doesn't  come to the client.</p>
  
  <p>Related issue on github - github.com/websocket-rails/websocket-rails/issues/211 </p>