title: AWS ElasticBeanstalk + Socket.IO + SSL issue
body: <p>I'm having trouble working with AWS ElasticBeanstalk with NodeJS environment + Socket.IO + SSL for our messaging app.</p>
  
  <p>I'm already running in circles trying to fix the issue but I always ends up to a Websocket handshake error (504 GATEWAY_TIMEOUT).</p>
  
  <hr>
  
  <p><strong>AWS Elastic Beanstalk Load Balancer configuration:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/dWfGi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dWfGi.png" alt="AWS Elastic Beanstalk Load Balancer configuration"></a></p>
  
  <hr>
  
  <p><strong>ELB security inbound rule</strong></p>
  
  <p><a href="https://i.stack.imgur.com/vZjlx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vZjlx.png" alt="ELB security inbound rule"></a></p>
  
  <hr>
  
  <p><strong>Instance's security inbound rule</strong></p>
  
  <p><a href="https://i.stack.imgur.com/7ebyP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7ebyP.png" alt="Instance&#39;s security inbound rule"></a></p>
  
  <hr>
  
  <p><strong>Response error</strong></p>
  
  <p><a href="https://i.stack.imgur.com/Jrp0q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Jrp0q.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p><strong>Front end code</strong></p>
  
  <p><a href="https://i.stack.imgur.com/uDtZV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uDtZV.png" alt="enter image description here"></a></p>
  
  <p>Thanks in advance. Any help is highly appreciated!</p>