title: Websockets with AWS and Elastic Beanstalk
body: <p>I'm trying to get my websockets working with Amazon Web Service and Elastic Beanstalk (ELB). </p>
  
  <p>I set up a proxy protocol according to:
  <a href="http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-proxy-protocol.html">http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/enable-proxy-protocol.html</a></p>
  
  <p>I've opened up all inbound traffic to my load balancer and other security groups on all ports, for all IPs.</p>
  
  <p>I also kept the load balancer listerner as HTTP on port 80.</p>
  
  <p>My websocket connection gives the following error when trying to connect on port 80:
  failed: Error during WebSocket handshake: Unexpected response code: 400</p>
  
  <p>And this error on port 8080:
  failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED</p>
  
  <p>Would appreciate suggestions, I'm stuck at this point.</p>
  
  <p>Thanks!</p>