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

More than 1 year has passed since last update.

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.