AWS EC2 Behind ELB Error during WebSocket handshake: Unexpected response code: 400 (memo)

Go to EC2->Network & Security->Load Balancers

Select your load balancer and go to Listeners. Ensure that both the Load Balancer protocol and the Instance Protocol are set to TCP for port 80 and SSL for port 443 rather than HTTP and HTTPS.